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

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

Issue 832583007: Add GN files for chrome_elf (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and add test.gni import. Created 5 years, 11 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 | chrome/BUILD.gn » ('j') | chrome_elf/BUILD.gn » ('J')
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 b5c4a9025fcccab1a8e8c553e01d611782393d26..4cb23d6ee7c12feae8f3f7afd6d8e42237ae4b3b 100644
--- a/build/config/compiler/BUILD.gn
+++ b/build/config/compiler/BUILD.gn
@@ -850,7 +850,17 @@ if (is_win) {
"/Oy-", # disable omitting frame pointers, must be after /o2.
"/Os", # favor size over speed.
]
- common_optimize_on_ldflags = []
+ if (!is_asan) {
+ common_optimize_on_cflags += [
+ # Put data in separate COMDATs. This allows the linker
+ # to put bit-identical constants at the same address even if
+ # they're unrelated constants, which saves binary size.
+ # This optimization can't be used when ASan is enabled because
+ # it is not compatible with the ASan ODR checker.
+ "/Gw",
Slava Chigrin 2015/01/21 22:18:59 Like GYP https://code.google.com/p/chromium/codese
+ ]
+ }
+ common_optimize_on_ldflags = [ "/OPT:REF" ]
Slava Chigrin 2015/01/21 22:18:59 Like GYP https://code.google.com/p/chromium/codes
} else {
common_optimize_on_cflags = [
# Don't emit the GCC version ident directives, they just end up in the
« no previous file with comments | « no previous file | chrome/BUILD.gn » ('j') | chrome_elf/BUILD.gn » ('J')

Powered by Google App Engine
This is Rietveld 408576698