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

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

Issue 2943863002: Set using_sanitizer if use_cfi_diag is true. (Closed)
Patch Set: Sanitizers not supported in official builds 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 | « no previous file | build/config/sanitizers/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/config/compiler/BUILD.gn
diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn
index aab7557f9b466a68addf403544518ed4f004f2fa..b156970abb1e766cc685476fcc7b46ca9af90dc1 100644
--- a/build/config/compiler/BUILD.gn
+++ b/build/config/compiler/BUILD.gn
@@ -332,9 +332,7 @@ config("compiler") {
"-Wl,-z,relro",
]
if (!using_sanitizer) {
- if (!use_cfi_diag) {
- ldflags += [ "-Wl,-z,defs" ]
- }
+ ldflags += [ "-Wl,-z,defs" ]
# Functions interposed by the sanitizers can make ld think
# that some libraries aren't needed when they actually are,
« no previous file with comments | « no previous file | build/config/sanitizers/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698