Skip to content

Commit

Permalink
Enable Address Sanitizer in Linux CI
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-lunarg committed Sep 9, 2024
1 parent 4c63e84 commit d5d6d5f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/tools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ jobs:
uses: hendrikmuhs/ccache-action@v1.2
with:
key: ${{ runner.os }}-${{ matrix.config }}-${{ matrix.cc }}-${{matrix.cube_wsi}}
# This is to combat a bug when using 6.6 linux kernels with thread/address sanitizer
# https://github.com/google/sanitizers/issues/1716
- run: sudo sysctl vm.mmap_rnd_bits=28
- name: Configure
run: |
cmake -S. -B build -G "Ninja" \
Expand All @@ -84,7 +87,7 @@ jobs:
-D BUILD_WERROR=ON \
-D INSTALL_ICD=ON \
-D BUILD_TESTS=ON \
-D ENABLE_ADDRESS_SANITIZER=OFF # Re-enable when github CI doesn't have fatal issues
-D ENABLE_ADDRESS_SANITIZER=ON
env:
CC: ${{matrix.cc}}
CXX: ${{matrix.cxx}}
Expand Down

0 comments on commit d5d6d5f

Please sign in to comment.