Index: build/toolchain/win/BUILD.gn |
diff --git a/build/toolchain/win/BUILD.gn b/build/toolchain/win/BUILD.gn |
index beee0781d673a1ae2e453d07df65371339009c99..40420c110c7125fb951c13be6d3ad6e5c541e915 100644 |
--- a/build/toolchain/win/BUILD.gn |
+++ b/build/toolchain/win/BUILD.gn |
@@ -238,11 +238,12 @@ template("msvc_toolchain") { |
current_os = invoker.toolchain_os |
} |
- forward_variables_from(invoker, |
- [ |
- "is_clang", |
- "is_component_build", |
- ]) |
+ if (defined(invoker.is_clang)) { |
+ is_clang = invoker.is_clang |
+ } |
+ if (defined(invoker.is_component_build)) { |
+ is_component_build = invoker.is_component_build |
+ } |
Dirk Pranke
2016/05/03 17:48:50
I'm confused; isn't this exactly the same?
brettw
2016/05/03 18:00:43
With the new changes to forward_variables_from, it
Dirk Pranke
2016/05/03 20:06:33
Ah, right, I was thinking they weren't already in
|
# This value needs to be passed through unchanged. |
host_toolchain = host_toolchain |
@@ -313,7 +314,9 @@ template("win_x64_toolchains") { |
cl = "${goma_prefix}\"${x64_toolchain_data.vc_bin_dir}/cl.exe\"" |
is_clang = false |
- forward_variables_from(invoker, [ "is_component_build" ]) |
+ if (defined(invoker.is_component_build)) { |
+ is_component_build = invoker.is_component_build |
+ } |
} |
msvc_toolchain("clang_" + target_name) { |
@@ -325,7 +328,9 @@ template("win_x64_toolchains") { |
toolchain_os = "win" |
is_clang = true |
- forward_variables_from(invoker, [ "is_component_build" ]) |
+ if (defined(invoker.is_component_build)) { |
+ is_component_build = invoker.is_component_build |
+ } |
} |
} |