[PATCH] D103298: [gn] Make ubsan errors fatal, as in cmake

Reid Kleckner via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri May 28 08:05:54 PDT 2021


This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG4c6e2774d827: [gn] Make ubsan errors fatal, as in cmake (authored by rnk).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D103298/new/

https://reviews.llvm.org/D103298

Files:
  llvm/utils/gn/build/BUILD.gn


Index: llvm/utils/gn/build/BUILD.gn
===================================================================
--- llvm/utils/gn/build/BUILD.gn
+++ 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" ]
   }
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D103298.348530.patch
Type: text/x-patch
Size: 471 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210528/822c552c/attachment.bin>


More information about the llvm-commits mailing list