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

Unified Diff: build/toolchain/gcc_toolchain.gni

Issue 1943583002: GN: forward_variables_from shouldn't clobber vars. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 | « build/config/nacl/rules.gni ('k') | build/toolchain/nacl_toolchain.gni » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/toolchain/gcc_toolchain.gni
diff --git a/build/toolchain/gcc_toolchain.gni b/build/toolchain/gcc_toolchain.gni
index 2840ae0adf9f2d2298f43a6a26c9ee99d128f35d..4ef118b797cefabee46b8ea9075700e26135dbb5 100644
--- a/build/toolchain/gcc_toolchain.gni
+++ b/build/toolchain/gcc_toolchain.gni
@@ -412,14 +412,21 @@ template("gcc_toolchain") {
forward_variables_from(invoker,
[
- "is_clang",
- "is_component_build",
- "is_nacl_glibc",
"use_allocator",
"use_gold",
"symbol_level",
])
+ if (defined(invoker.is_clang)) {
+ is_clang = invoker.is_clang
agrieve 2016/05/03 00:14:09 why did these need to be broken out?
brettw 2016/05/03 01:02:44 These are all global variables and in this case we
+ }
+ if (defined(invoker.is_component_build)) {
+ is_component_build = invoker.is_component_build
+ }
+ if (defined(invoker.is_nacl_glibc)) {
+ is_nacl_glibc = invoker.is_nacl_glibc
+ }
+
if (defined(invoker.clear_sanitizers) && invoker.clear_sanitizers) {
is_asan = false
is_cfi = false
« no previous file with comments | « build/config/nacl/rules.gni ('k') | build/toolchain/nacl_toolchain.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698