Skip to content

Commit

Permalink
add asan config
Browse files Browse the repository at this point in the history
  • Loading branch information
j2kun committed May 21, 2024
1 parent a4a81e5 commit 509ff7b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,12 @@ common -c dbg
common --noenable_bzlmod
# prevents changes to PATH from causing a full rebuild
common --incompatible_strict_action_env

# run with --config=asan to enable
build:asan --strip=never
build:asan --copt -fsanitize=address
build:asan --copt -DADDRESS_SANITIZER
build:asan --copt -O1
build:asan --copt -g
build:asan --copt -fno-omit-frame-pointer
build:asan --linkopt -fsanitize=address

0 comments on commit 509ff7b

Please sign in to comment.