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

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

Issue 1883723004: Android: Avoid linking with --gc-sections. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: back to patch set 3 Created 4 years, 8 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') | 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 3cf72220237662772be19973c54a9c9de54012fd..13dea91c1dfbd649b67a92e1e98332b12025b16d 100644
--- a/build/config/compiler/BUILD.gn
+++ b/build/config/compiler/BUILD.gn
@@ -1246,10 +1246,6 @@ config("no_optimize") {
if (!using_sanitizer && target_cpu != "arm64") {
cflags += [ "-fomit-frame-pointer" ]
}
-
- # Don't use gc-sections since it can cause links to succeed when they
- # actually shouldn't. http://crbug.com/159847
- ldflags = common_optimize_on_ldflags - [ "-Wl,--gc-sections" ]
} else {
cflags = [ "-O0" ]
ldflags = []
« no previous file with comments | « build/common.gypi ('k') | build/config/sanitizers/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698