Chromium Code Reviews| 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 |