Skip to content

Commit a351e7c

Browse files
committed
Enable AddressSanitizer in Clang build
1 parent 31d46aa commit a351e7c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/build-test.yml

+3
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
build_type: Debug
1919
build_tool_options: -j 4
2020
analyzer: off
21+
sanitizer: address
2122
- os: macos-12
2223
build_type: Debug
2324
build_tool_options: -j 4
@@ -62,6 +63,7 @@ jobs:
6263
env:
6364
CC: ${{matrix.cc}}
6465
ANALYZER: ${{matrix.analyzer}}
66+
SANITIZER: ${{matrix.sanitizer}}
6567
GENERATOR: ${{matrix.generator}}
6668
BUILD_TYPE: ${{matrix.build_type}}
6769
BUILD_TOOL_OPTIONS: ${{matrix.build_tool_options}}
@@ -76,6 +78,7 @@ jobs:
7678
-DCMAKE_PREFIX_PATH=$(pwd) \
7779
-DBUILD_TESTING=on \
7880
-DANALYZER=${ANALYZER:-off} \
81+
-DSANITIZER=${SANITIZER:-off} \
7982
${GENERATOR:+-G} ${GENERATOR:+"${GENERATOR}"} ..
8083
cmake --build . --config ${BUILD_TYPE:-RelWithDebInfo} -- ${BUILD_TOOL_OPTIONS}
8184
- name: 'Run simdzone tests'

0 commit comments

Comments
 (0)