Merge pull request #309 from hannob/ubsan_abort
Make sure UBSAN errors cause a hard abort.
This commit is contained in:
commit
4fff5a7097
@ -66,7 +66,7 @@ populate_environment() {
|
||||
# http://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html
|
||||
BASE_COMPILE_FLAGS+=" -fsanitize=undefined"
|
||||
BASE_LINK_FLAGS+=" -fsanitize=undefined"
|
||||
export UBSAN_OPTIONS=print_stacktrace=1
|
||||
export UBSAN_OPTIONS="print_stacktrace=1:halt_on_error=1:abort_on_error=1"
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user