Index: build/config/compiler/BUILD.gn |
diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn |
index 255a2cd0a9750e5c3b514cb59f6383d577fb2857..d61e8ea2175bc884c8f56f5d074c5d953db4984b 100644 |
--- a/build/config/compiler/BUILD.gn |
+++ b/build/config/compiler/BUILD.gn |
@@ -948,9 +948,14 @@ if (is_win) { |
# Specifically tell the linker to perform optimizations. |
# See http://lwn.net/Articles/192624/ . |
"-Wl,-O1", |
- "-Wl,--as-needed", |
"-Wl,--gc-sections", |
] |
+ |
+ if (!using_sanitizer) { |
+ # As needed has a history of having problems with asan. See 234010 and |
Nico
2015/01/27 04:39:38
fwiw,i like the comment in build/common.gypi more
|
+ # 452105 for examples. |
+ common_optimize_on_ldflags += [ "-Wl,--as-needed" ] |
+ } |
} |
} |