Skip to content

Commit 938c331

Browse files
committed
Add config for ASAN builds.
Enables ASAN builds with e.g. bazel -c opt --config=asan <targets>
1 parent db8f471 commit 938c331

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/.bazelrc

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
11
# Enable Bzlmod for every Bazel command
22
common --enable_bzlmod
3-
common --cxxopt=-std=c++20
3+
common --cxxopt=-std=c++20
4+
5+
build:asan --strip=never
6+
build:asan --copt -fsanitize=address
7+
build:asan --copt -DADDRESS_SANITIZER
8+
build:asan --copt -D_GLIBCXX_SANITIZE_VECTOR
9+
build:asan --copt -O1
10+
build:asan --copt -g
11+
build:asan --copt -fno-omit-frame-pointer
12+
build:asan --linkopt -fsanitize=address

0 commit comments

Comments
 (0)