Commit 594b746c authored by Michaël Roynard's avatar Michaël Roynard
Browse files

Add sanitizer options

parent 69445cd7
Pipeline #12790 failed with stages
in 8 minutes and 11 seconds
...@@ -82,11 +82,11 @@ distcheck-linux-clang-debug: ...@@ -82,11 +82,11 @@ distcheck-linux-clang-debug:
- pacman -Sy --noconfirm llvm # TO BE DELETED - pacman -Sy --noconfirm llvm # TO BE DELETED
- cmake .. - cmake ..
-DCMAKE_BUILD_TYPE=$PYLENE_CONFIGURATION -DCMAKE_BUILD_TYPE=$PYLENE_CONFIGURATION
-DCMAKE_C_FLAGS="-g3 -fsanitize=address -fno-omit-frame-pointer" -DCMAKE_C_FLAGS="-g3 -fsanitize=address -fsanitize=leak -fno-omit-frame-pointer -fno-optimize-sibling-calls"
-DCMAKE_CXX_FLAGS="-g3 -fsanitize=address -fno-omit-frame-pointer" -DCMAKE_CXX_FLAGS="-g3 -fsanitize=address -fsanitize=leak -fno-omit-frame-pointer -fno-optimize-sibling-calls"
-DCMAKE_EXE_LINKER_FLAGS="-fsanitize=address -fno-omit-frame-pointer" -DCMAKE_EXE_LINKER_FLAGS="-fsanitize=address -fsanitize=leak -fno-omit-frame-pointer -fno-optimize-sibling-calls"
-DCMAKE_SHARED_LINKER_FLAGS="-fsanitize=address -fno-omit-frame-pointer" -DCMAKE_SHARED_LINKER_FLAGS="-fsanitize=address -fsanitize=leak -fno-omit-frame-pointer -fno-optimize-sibling-calls"
-DCMAKE_MODULE_LINKER_FLAGS="-fsanitize=address -fno-omit-frame-pointer" -DCMAKE_MODULE_LINKER_FLAGS="-fsanitize=address -fsanitize=leak -fno-omit-frame-pointer -fno-optimize-sibling-calls"
- export ASAN_OPTIONS=symbolize=1 - export ASAN_OPTIONS=symbolize=1
- export ASAN_SYMBOLIZER_PATH=$(which llvm-symbolizer) - export ASAN_SYMBOLIZER_PATH=$(which llvm-symbolizer)
- cmake --build . - cmake --build .
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment