Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(338)

Unified Diff: build/config/sanitizers/BUILD.gn

Issue 1942563002: gn: add is_ubsan_no_recover to halt the program on the first problem. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Half->Halt Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | build/config/sanitizers/sanitizers.gni » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/config/sanitizers/BUILD.gn
diff --git a/build/config/sanitizers/BUILD.gn b/build/config/sanitizers/BUILD.gn
index 8c357cb296adba4153c1e217fc3343c9741b02a6..d853950b2911a10d85f455e8cb4525817deee0d0 100644
--- a/build/config/sanitizers/BUILD.gn
+++ b/build/config/sanitizers/BUILD.gn
@@ -325,6 +325,12 @@ config("ubsan_flags") {
}
}
+config("ubsan_no_recover") {
+ if (is_ubsan_no_recover) {
+ cflags = [ "-fno-sanitize-recover=undefined" ]
+ }
+}
+
config("ubsan_security_flags") {
if (is_ubsan_security) {
ubsan_blacklist_path =
@@ -357,6 +363,7 @@ all_sanitizer_configs = [
":msan_flags",
":tsan_flags",
":ubsan_flags",
+ ":ubsan_no_recover",
":ubsan_security_flags",
":ubsan_vptr_flags",
]
« no previous file with comments | « no previous file | build/config/sanitizers/sanitizers.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698