Skip to content

Commit 60be0d4

Browse files
committed
bazel: set D_FORTIFY_SOURCE to 0 when asan is enabled
Bug: bazelbuild/bazel#6932, google/sanitizers#247
1 parent bba0a26 commit 60be0d4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.bazelrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ build -c opt
55
build:asan -c dbg
66
build:asan --copt -fsanitize=address
77
build:asan --copt -fno-omit-frame-pointer
8+
build:asan --copt -Wno-macro-redefined
9+
build:asan --copt -D_FORTIFY_SOURCE=0
810
build:asan --linkopt -fsanitize=address
911

1012
# Thread sanitizer

0 commit comments

Comments
 (0)