build: add ubsan default options

Use print_stacktrace=1 for UBSAN by default.
This commit is contained in:
ii14
2023-04-22 03:27:32 +02:00
parent 33687f5e87
commit 4cc69f45b4
6 changed files with 17 additions and 7 deletions

View File

@ -13,9 +13,6 @@ export CC='clang'
# Change to detect_leaks=1 to detect memory leaks (slower).
export ASAN_OPTIONS="detect_leaks=0:log_path=$log_path/asan"
# Show backtraces in the logs.
export UBSAN_OPTIONS="print_stacktrace=1"
make -C "$root_path" CMAKE_EXTRA_FLAGS="-DENABLE_ASAN_UBSAN=ON"
VIMRUNTIME="$root_path"/runtime "$root_path"/build/bin/nvim

View File

@ -106,7 +106,6 @@
# ASAN_OPTIONS=detect_leaks=1
export ASAN_OPTIONS="log_path=./test.log:abort_on_error=1"
export UBSAN_OPTIONS=print_stacktrace=1
# for treesitter functionaltests
mkdir -p runtime/parser