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

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

Issue 2943863002: Set using_sanitizer if use_cfi_diag is true. (Closed)
Patch Set: Created 3 years, 6 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 | « build/config/compiler/BUILD.gn ('k') | 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 637fc881174f37fbcf016d8e314c1f3315ba55fb..459b73e3bba849b2e1e1553fef8437f887c1e329 100644
--- a/build/config/sanitizers/BUILD.gn
+++ b/build/config/sanitizers/BUILD.gn
@@ -272,8 +272,8 @@ config("common_sanitizer_flags") {
}
# Common options for AddressSanitizer, LeakSanitizer, ThreadSanitizer,
- # MemorySanitizer and non-official CFI builds.
- if (using_sanitizer || (is_cfi && !is_official_build)) {
+ # MemorySanitizer and CFI with diagnostics.
+ if (using_sanitizer) {
if (is_posix) {
cflags += [ "-fno-omit-frame-pointer" ]
Nico 2017/06/19 19:29:41 This still doesn't happen in prod builds, right? C
pcc1 2017/06/19 22:18:52 That would essentially forbid sanitizers in offici
Nico 2017/06/19 23:50:28 I think so? Not sure, but with this change it see
pcc1 2017/06/19 23:59:08 Seems reasonable enough. I was imagining that peop
} else {
« no previous file with comments | « build/config/compiler/BUILD.gn ('k') | build/config/sanitizers/sanitizers.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698