This is an automated email from the ASF dual-hosted git repository.

dongjoon pushed a commit to branch branch-2.2
in repository https://gitbox.apache.org/repos/asf/orc.git


The following commit(s) were added to refs/heads/branch-2.2 by this push:
     new a59b1e8ce ORC-1954: Fix CI asan-test
a59b1e8ce is described below

commit a59b1e8ce78b496d75fa7287eb5cf5be12d9a63f
Author: sychen <[email protected]>
AuthorDate: Fri Jul 25 14:38:38 2025 -0700

    ORC-1954: Fix CI asan-test
    
    ### What changes were proposed in this pull request?
    
    ### Why are the changes needed?
    https://github.com/apache/orc/actions/runs/16255164323
    
    ```
    [Invalid workflow file: 
.github/workflows/asan_test.yml#L33](https://github.com/apache/orc/actions/runs/16255164323/workflow)
    You have an error in your yaml syntax on line 33
    ```
    
    ### How was this patch tested?
    GA
    
    ### Was this patch authored or co-authored using generative AI tooling?
    No
    
    Closes #2326 from cxzl25/ORC-1954.
    
    Authored-by: sychen <[email protected]>
    Signed-off-by: Dongjoon Hyun <[email protected]>
    (cherry picked from commit eaca53cbd85de1626889d324ee3fc4e65033bbed)
    Signed-off-by: Dongjoon Hyun <[email protected]>
---
 .github/workflows/asan_test.yml | 6 +++---
 CMakeLists.txt                  | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/.github/workflows/asan_test.yml b/.github/workflows/asan_test.yml
index 6e7ac64fb..a02522f9e 100644
--- a/.github/workflows/asan_test.yml
+++ b/.github/workflows/asan_test.yml
@@ -48,9 +48,9 @@ jobs:
     - name: Checkout
       uses: actions/checkout@v4
     - name: Install dependencies
-    run: |
-      sudo apt-get update
-      sudo apt-get install -y build-essential cmake libpthread-stubs0-dev
+      run: |
+        sudo apt-get update
+        sudo apt-get install -y build-essential cmake libpthread-stubs0-dev
     - name: Configure and Build with ASAN and UBSAN
       env:
         CC: ${{ matrix.cc }}
diff --git a/CMakeLists.txt b/CMakeLists.txt
index f15c812fb..ae37f919e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -181,7 +181,7 @@ endif()
 
 # Configure Undefined Behavior Sanitizer if enabled
 if (ENABLE_UBSAN)
-  if (CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang")
+  if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
     set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=undefined 
-fno-sanitize=alignment,vptr,function  -fno-sanitize-recover=all")
     set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fsanitize=undefined 
-fno-sanitize=alignment,vptr,function  -fno-sanitize-recover=all")
     message(STATUS "Undefined Behavior Sanitizer enabled")

Reply via email to