Skip to content

Commit

Permalink
Add ASAN config options (#69)
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Carroll <[email protected]>
  • Loading branch information
mjcarroll authored Feb 6, 2024
1 parent 2bfdf4f commit 9a00965
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions bazel.rc
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,16 @@ build:gcc --action_env=CC=gcc
build:gcc --action_env=CXX=g++
build:gcc --host_action_env=CC=gcc
build:gcc --host_action_env=CXX=g++

build:asan --copt=-g
build:asan --copt=-fno-common
build:asan --copt=-fsanitize=address
build:asan --copt=-fsanitize-address-use-after-scope
build:asan --copt=-O0
build:asan --copt=-fno-omit-frame-pointer
build:asan --linkopt=-fsanitize=address
build:asan --linkopt=-fsanitize-address-use-after-scope
build:asan --test_env=ASAN_OPTIONS=detect_odr_violation=0
build:asan --test_env=LSAN_OPTIONS
build:asan --test_env=ASAN_SYMBOLIZER_PATH
build:asan --test_env=LSAN_SYMBOLIZER_PATH

0 comments on commit 9a00965

Please sign in to comment.