Index: build/toolchain/gcc_toolchain.gni |
diff --git a/build/toolchain/gcc_toolchain.gni b/build/toolchain/gcc_toolchain.gni |
index 5cca299ec25683aaa7665fcb8f2616b6eb4e65d7..7dd2e948c70a273de8e7200d67a9bda71609a8c4 100644 |
--- a/build/toolchain/gcc_toolchain.gni |
+++ b/build/toolchain/gcc_toolchain.gni |
@@ -40,8 +40,8 @@ template("gcc_toolchain") { |
assert(defined(invoker.cxx), "gcc_toolchain() must specify a \"cxx\" value") |
assert(defined(invoker.ar), "gcc_toolchain() must specify a \"ar\" value") |
assert(defined(invoker.ld), "gcc_toolchain() must specify a \"ld\" value") |
- assert(defined(invoker.toolchain_cpu_arch), |
- "gcc_toolchain() must specify a \"toolchain_cpu_arch\"") |
+ assert(defined(invoker.toolchain_cpu), |
+ "gcc_toolchain() must specify a \"toolchain_cpu\"") |
assert(defined(invoker.toolchain_os), |
"gcc_toolchain() must specify a \"toolchain_os\"") |
@@ -204,8 +204,19 @@ template("gcc_toolchain") { |
# When invoking this toolchain not as the default one, these args will be |
# passed to the build. They are ignored when this is the default toolchain. |
toolchain_args() { |
- cpu_arch = invoker.toolchain_cpu_arch |
- os = invoker.toolchain_os |
+ current_cpu = invoker.toolchain_cpu |
+ current_os = invoker.toolchain_os |
+ |
+ # These values need to be passed through unchanged. |
+ target_os = target_os |
+ target_cpu = target_cpu |
+ |
+ # TODO(dpranke): These values are here for backwards compatibility and |
+ # should be deleted when all of the builders and configs have been |
+ # updated. |
+ cpu_arch = current_cpu |
+ os = current_os |
+ |
if (defined(invoker.is_clang)) { |
is_clang = invoker.is_clang |
} |