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

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

Issue 457193002: Port r288424 to gn. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: reb Created 6 years, 4 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/config/android/config.gni ('k') | no next file » | 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 a15232d8c62ef0db730f055cb3cb08a4a11fa2a4..613223539baa20fd2d34d9c895e093cb56fc8f50 100644
--- a/build/config/compiler/BUILD.gn
+++ b/build/config/compiler/BUILD.gn
@@ -275,15 +275,11 @@ config("compiler") {
# Use gold for Android for most CPU architectures.
if (cpu_arch == "x86" || cpu_arch == "x64" || cpu_arch == "arm") {
+ ldflags += [ "-fuse-ld=gold" ]
if (is_clang) {
- # Clang does not support -fuse-ld to invoke the built-in gold linker,
- # so use the -B option which requires us to specify the path.
- ldflags += [
- "-B" + rebase_path("//build/android/arm-linux-androideabi-gold",
- root_build_dir)
- ]
- } else {
- ldflags += [ "-fuse-ld=gold" ]
+ # Let clang find the ld.gold in the NDK.
+ ldflags += [ "--gcc-toolchain=" + rebase_path(android_toolchain_root,
+ root_build_dir) ]
}
}
« no previous file with comments | « build/config/android/config.gni ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698