diff --git a/llvm/utils/gn/build/BUILD.gn b/llvm/utils/gn/build/BUILD.gn --- a/llvm/utils/gn/build/BUILD.gn +++ b/llvm/utils/gn/build/BUILD.gn @@ -298,7 +298,7 @@ if (use_ubsan) { assert(is_clang && current_os == "linux", "ubsan only supported on Linux/Clang") - cflags += [ "-fsanitize=undefined" ] + cflags += [ "-fsanitize=undefined", "-fno-sanitize-recover=all" ] ldflags += [ "-fsanitize=undefined" ] }