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

Unified Diff: build/toolchain/linux/BUILD.gn

Issue 2797303005: [infra] Fixes for cross-toolchains (Closed)
Patch Set: Roll boringssl_gen and remove bad assert Created 3 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 | « DEPS ('k') | third_party/tcmalloc/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/toolchain/linux/BUILD.gn
diff --git a/build/toolchain/linux/BUILD.gn b/build/toolchain/linux/BUILD.gn
index 3c511336403bfce887427a9a12dbf44230ce2e84..4925e15895c3b0f8e6dca9c225b09ca0864e07e7 100644
--- a/build/toolchain/linux/BUILD.gn
+++ b/build/toolchain/linux/BUILD.gn
@@ -22,13 +22,18 @@ if (use_goma) {
}
gcc_toolchain("arm") {
- cc = "${compiler_prefix}arm-linux-gnueabihf-gcc"
- cxx = "${compiler_prefix}arm-linux-gnueabihf-g++"
+ prefix = "arm-linux-gnueabihf-"
+ if (toolchain_prefix != "") {
+ prefix = toolchain_prefix
+ }
- ar = "arm-linux-gnueabihf-ar"
+ cc = "${compiler_prefix}${prefix}gcc"
+ cxx = "${compiler_prefix}${prefix}g++"
+
+ ar = "${prefix}ar"
ld = cxx
- readelf = "arm-linux-gnueabihf-readelf"
- nm = "arm-linux-gnueabihf-nm"
+ readelf = "${prefix}readelf"
+ nm = "${prefix}nm"
toolchain_cpu = "arm"
toolchain_os = "linux"
@@ -36,13 +41,18 @@ gcc_toolchain("arm") {
}
gcc_toolchain("arm64") {
- cc = "${compiler_prefix}aarch64-linux-gnu-gcc"
- cxx = "${compiler_prefix}aarch64-linux-gnu-g++"
+ prefix = "aarch64-linux-gnu-"
+ if (toolchain_prefix != "") {
+ prefix = toolchain_prefix
+ }
+
+ cc = "${compiler_prefix}${prefix}gcc"
+ cxx = "${compiler_prefix}${prefix}g++"
- ar = "aarch64-linux-gnu-ar"
+ ar = "${prefix}ar"
ld = cxx
- readelf = "aarch64-linux-gnu-readelf"
- nm = "aarch64-linux-gnu-nm"
+ readelf = "${prefix}readelf"
+ nm = "${prefix}nm"
toolchain_cpu = "arm64"
toolchain_os = "linux"
@@ -109,8 +119,8 @@ gcc_toolchain("x64") {
}
gcc_toolchain("mipsel") {
- cc = "${toolchain_prefix}gcc"
- cxx = "${toolchain_prefix}g++"
+ cc = "${compiler_prefix}${toolchain_prefix}gcc"
+ cxx = "${compiler_prefix}${toolchain_prefix}g++"
ar = "${toolchain_prefix}ar"
ld = cxx
readelf = "${toolchain_prefix}readelf"
« no previous file with comments | « DEPS ('k') | third_party/tcmalloc/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698