Skip to content
This repository has been archived by the owner on Mar 12, 2020. It is now read-only.

infra: fix macOS *san builds #642

Merged
merged 1 commit into from
Dec 27, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions tools/bazel.rc
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,16 @@ test --copt='-ggdb3'

# --config asan: Address sanitizer
build:asan --strip=never
build:asan --copt -Wno-macro-redefined
build:asan --copt -D_FORTIFY_SOURCE=0
build:asan --copt -fsanitize=address
build:asan --copt -fno-omit-frame-pointer
build:asan --linkopt -fsanitize=address

# --config tsan: ThreadSanitizer
build:tsan --strip=never
build:tsan --copt -Wno-macro-redefined
build:tsan --copt -D_FORTIFY_SOURCE=0
build:tsan --copt -fsanitize=thread
build:tsan --copt -DTHREAD_SANITIZER
build:tsan --copt -DDYNAMIC_ANNOTATIONS_ENABLED=1
Expand All @@ -22,13 +26,17 @@ build:tsan --linkopt -ltsan

# --config msan: Memory sanitizer
build:msan --strip=never
build:msan --copt -Wno-macro-redefined
build:msan --copt -D_FORTIFY_SOURCE=0
build:msan --copt -fsanitize=memory
build:msan --copt -DADDRESS_SANITIZER
build:msan --copt -fno-omit-frame-pointer
build:msan --linkopt -fsanitize=memory

# --config ubsan: Undefined Behavior Sanitizer
build:ubsan --strip=never
build:ubsan --copt -Wno-macro-redefined
build:ubsan --copt -D_FORTIFY_SOURCE=0
build:ubsan --copt -fsanitize=undefined
build:ubsan --copt -fno-omit-frame-pointer
build:ubsan --linkopt -fsanitize=undefined
Expand Down