Skip to content
Open
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
17 changes: 16 additions & 1 deletion src/.bazelrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
# Enable Bzlmod for every Bazel command
common --enable_bzlmod
common --cxxopt=-std=c++20
common --cxxopt=-std=c++20

# Options to build with address sanitizer support.
#
# Example usage:
# bazel build -c dbg --config=asan <targets>
#
# _GLIBCXX_SANITIZE_VECTOR is required to enable sanitizer checks in libstdc++
build:asan --strip=never
build:asan --copt=-fsanitize=address
build:asan --copt=-DADDRESS_SANITIZER
build:asan --copt=-D_GLIBCXX_SANITIZE_VECTOR
build:asan --copt=-O1
build:asan --copt=-g
build:asan --copt=-fno-omit-frame-pointer
build:asan --linkopt=-fsanitize=address