From 17ce634b8f44e218270ee472599edf4cf3ba0fac Mon Sep 17 00:00:00 2001 From: ii14 Date: Thu, 16 Mar 2023 19:24:04 +0100 Subject: build!: rename sanitizer options from CLANG_* to ENABLE_* --- contrib/asan.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'contrib/asan.sh') diff --git a/contrib/asan.sh b/contrib/asan.sh index 7e7dffa1af..baf7abb5a8 100755 --- a/contrib/asan.sh +++ b/contrib/asan.sh @@ -16,7 +16,7 @@ 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="-DCLANG_ASAN_UBSAN=ON" +make -C "$root_path" CMAKE_EXTRA_FLAGS="-DENABLE_ASAN_UBSAN=ON" VIMRUNTIME="$root_path"/runtime "$root_path"/build/bin/nvim # Need to manually reset terminal to avoid mangled output, nvim does not -- cgit From 4cc69f45b4a56c1c0f0ac8ac15b66dffe00d4615 Mon Sep 17 00:00:00 2001 From: ii14 Date: Sat, 22 Apr 2023 03:27:32 +0200 Subject: build: add ubsan default options Use print_stacktrace=1 for UBSAN by default. --- contrib/asan.sh | 3 --- 1 file changed, 3 deletions(-) (limited to 'contrib/asan.sh') diff --git a/contrib/asan.sh b/contrib/asan.sh index baf7abb5a8..6354d65514 100755 --- a/contrib/asan.sh +++ b/contrib/asan.sh @@ -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 -- cgit