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

Unified Diff: build/config/BUILD.gn

Issue 1379503002: Add Undefined Behaviour sanitizer support to GN. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review comments. Created 5 years, 3 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/compiler/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/config/BUILD.gn
diff --git a/build/config/BUILD.gn b/build/config/BUILD.gn
index c8da546781c29aa77d296cb2e5c3c9e69b32845e..39f79e6c18996e5cf1571016da007109b02418fc 100644
--- a/build/config/BUILD.gn
+++ b/build/config/BUILD.gn
@@ -168,6 +168,9 @@ config("feature_flags") {
if (is_msan) {
defines += [ "MEMORY_SANITIZER" ]
}
+ if (is_ubsan) {
+ defines += [ "UNDEFINED_SANITIZER" ]
+ }
if (enable_webrtc) {
defines += [ "ENABLE_WEBRTC=1" ]
}
« no previous file with comments | « no previous file | build/config/compiler/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698