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

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

Issue 1145043003: Roll Clang 233105-2:238013-1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Try 238013 Created 5 years, 7 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/common.gypi ('k') | tools/clang/blink_gc_plugin/JsonWriter.h » ('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 dbe2e5744993faa616fb6f8529a5f16e8d07d67b..ff20eb69a89fab68a2dab27606b40643f13a57ba 100644
--- a/build/config/compiler/BUILD.gn
+++ b/build/config/compiler/BUILD.gn
@@ -377,6 +377,13 @@ config("compiler") {
} else {
cflags += [ "-funwind-tables" ]
}
+
+ if (is_clang && !is_nacl && !is_debug) {
+ # Non-unique section names appears to make linker dead stripping
+ # less effective. See http://crbug.com/483026#c20
+ # TODO(hans): Remove this if resolved upstream.
+ cflags += [ "-funique-section-names" ]
+ }
}
# Linux/Android common flags setup.
« no previous file with comments | « build/common.gypi ('k') | tools/clang/blink_gc_plugin/JsonWriter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698