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

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

Issue 2219953002: Use new toolchain_args variable in GN (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@toolchain_args
Patch Set: wrap Created 4 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/toolchain/goma.gni ('k') | build/toolchain/mac/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 c7a879465f8f284645fa1a2dc17c89f873022246..548722d3938017ac936b9088b7a686c2afbbb5fe 100644
--- a/build/toolchain/linux/BUILD.gn
+++ b/build/toolchain/linux/BUILD.gn
@@ -6,15 +6,19 @@ import("//build/config/sysroot.gni")
import("//build/toolchain/gcc_toolchain.gni")
clang_toolchain("clang_arm") {
- toolchain_cpu = "arm"
- toolchain_os = "linux"
toolprefix = "arm-linux-gnueabihf-"
+ toolchain_args = {
+ current_cpu = "arm"
+ current_os = "linux"
+ }
}
clang_toolchain("clang_arm64") {
- toolchain_cpu = "arm64"
- toolchain_os = "linux"
toolprefix = "aarch64-linux-gnu-"
+ toolchain_args = {
+ current_cpu = "arm64"
+ current_os = "linux"
+ }
}
gcc_toolchain("arm") {
@@ -28,26 +32,34 @@ gcc_toolchain("arm") {
readelf = "${toolprefix}readelf"
nm = "${toolprefix}nm"
- toolchain_cpu = "arm"
- toolchain_os = "linux"
- is_clang = false
+ toolchain_args = {
+ current_cpu = "arm"
+ current_os = "linux"
+ is_clang = false
+ }
}
clang_toolchain("clang_x86") {
- toolchain_cpu = "x86"
- toolchain_os = "linux"
+ toolchain_args = {
+ current_cpu = "x86"
+ current_os = "linux"
+ }
}
clang_toolchain("clang_x86_v8_arm") {
- toolchain_cpu = "x86"
- v8_toolchain_cpu = "arm"
- toolchain_os = "linux"
+ toolchain_args = {
+ current_cpu = "x86"
+ v8_current_cpu = "arm"
+ current_os = "linux"
+ }
}
clang_toolchain("clang_x86_v8_mipsel") {
- toolchain_cpu = "x86"
- v8_toolchain_cpu = "mipsel"
- toolchain_os = "linux"
+ toolchain_args = {
+ current_cpu = "x86"
+ v8_current_cpu = "mipsel"
+ current_os = "linux"
+ }
}
gcc_toolchain("x86") {
@@ -59,26 +71,34 @@ gcc_toolchain("x86") {
ar = "ar"
ld = cxx
- toolchain_cpu = "x86"
- toolchain_os = "linux"
- is_clang = false
+ toolchain_args = {
+ current_cpu = "x86"
+ current_os = "linux"
+ is_clang = false
+ }
}
clang_toolchain("clang_x64") {
- toolchain_cpu = "x64"
- toolchain_os = "linux"
+ toolchain_args = {
+ current_cpu = "x64"
+ current_os = "linux"
+ }
}
clang_toolchain("clang_x64_v8_arm64") {
- toolchain_cpu = "x64"
- v8_toolchain_cpu = "arm64"
- toolchain_os = "linux"
+ toolchain_args = {
+ current_cpu = "x64"
+ v8_current_cpu = "arm64"
+ current_os = "linux"
+ }
}
clang_toolchain("clang_x64_v8_mips64el") {
- toolchain_cpu = "x64"
- v8_toolchain_cpu = "mips64el"
- toolchain_os = "linux"
+ toolchain_args = {
+ current_cpu = "x64"
+ v8_current_cpu = "mips64el"
+ current_os = "linux"
+ }
}
gcc_toolchain("x64") {
@@ -90,14 +110,18 @@ gcc_toolchain("x64") {
ar = "ar"
ld = cxx
- toolchain_cpu = "x64"
- toolchain_os = "linux"
- is_clang = false
+ toolchain_args = {
+ current_cpu = "x64"
+ current_os = "linux"
+ is_clang = false
+ }
}
clang_toolchain("clang_mipsel") {
- toolchain_cpu = "mipsel"
- toolchain_os = "linux"
+ toolchain_args = {
+ current_cpu = "mipsel"
+ current_os = "linux"
+ }
}
gcc_toolchain("mipsel") {
@@ -108,9 +132,11 @@ gcc_toolchain("mipsel") {
readelf = "mipsel-linux-gnu-readelf"
nm = "mipsel-linux-gnu-nm"
- toolchain_cpu = "mipsel"
- toolchain_os = "linux"
- is_clang = false
- cc_wrapper = ""
- use_goma = false
+ toolchain_args = {
+ cc_wrapper = ""
+ current_cpu = "mipsel"
+ current_os = "linux"
+ is_clang = false
+ use_goma = false
+ }
}
« no previous file with comments | « build/toolchain/goma.gni ('k') | build/toolchain/mac/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698