• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1build --cxxopt=-std=c++14 --host_cxxopt=-std=c++14
2
3build:asan --copt=-fsanitize=address --linkopt=-fsanitize=address
4build:msan --copt=-fsanitize=memory --linkopt=-fsanitize=memory
5build:tsan --copt=-fsanitize=thread --linkopt=-fsanitize=thread
6build:ubsan --copt=-fsanitize=undefined --linkopt=-fsanitize=undefined --action_env=UBSAN_OPTIONS=halt_on_error=1:print_stacktrace=1
7# Workaround for the fact that Bazel links with $CC, not $CXX
8# https://github.com/bazelbuild/bazel/issues/11122#issuecomment-613746748
9build:ubsan --copt=-fno-sanitize=function --copt=-fno-sanitize=vptr
10# Workaround for https://bugs.llvm.org/show_bug.cgi?id=16404
11build:ubsan --linkopt=--rtlib=compiler-rt --linkopt=-lunwind
12