Skip to content

Commit

Permalink
Update .bazelrc (#2)
Browse files Browse the repository at this point in the history
Add ASAN config

Signed-off-by: Marcus Boerger <marcus.boerger@gmail.com>
  • Loading branch information
helly25 authored Jan 20, 2024
1 parent 6eef58a commit 407af8c
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,18 @@ test --test_output=errors

# Disable: error: unused function 'CodepointSkipBackwards' [-Werror,-Wunused-function]
build --per_file_copt=external/utf8_range/utf8_validity.cc@-Wno-unused-function

build --copt=-fdiagnostics-color=always

# Custom --config=asan mode:
build:asan --copt -fsanitize=address,undefined
build:asan --linkopt -fsanitize=address,undefined
build:asan --copt -fno-sanitize=vptr
build:asan --linkopt -fno-sanitize=vptr
build:asan --linkopt -ldl
build:asan --define tcmalloc=disabled
build:asan --define signal_trace=disabled
build:asan --build_tag_filters=-no_san # skip san targets
build:asan --test_tag_filters=-no_san # skip san targets
build:asan --define san=true # skip san targets
build:asan --features=asan # https://github.com/bazelbuild/bazel/issues/6932

0 comments on commit 407af8c

Please sign in to comment.