Skip to content

Commit

Permalink
Add --config=asan for bazel. (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
g-easy authored Jan 6, 2020
1 parent 901f87a commit 5922512
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# bazel configurations for running tests under sanitizers.
# Based on https://github.com/bazelment/trunk/blob/master/tools/bazel.rc

# --config=asan : Address Sanitizer.
common:asan --copt -fsanitize=address
common:asan --copt -DADDRESS_SANITIZER
common:asan --linkopt -fsanitize=address
common:asan --cc_output_directory_tag=asan

0 comments on commit 5922512

Please sign in to comment.