|
GN: forward_variables_from shouldn't clobber vars.
The documentation for forward_variables_from specifies that it will give an error if the variable already exists in the target scope. But this was not implemented. Instead, the value would be silently overwritten.
This change implements the error, and fixes the times this happens in the Linux and Android builds.
Committed: https://crrev.com/0785c950dce7221b10c21e911795e181076b90db
Cr-Commit-Position: refs/heads/master@{#391136}
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+166 lines, -80 lines) |
Patch |
|
M |
build/android/incremental_install/BUILD.gn
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
build/compiled_action.gni
|
View
|
|
4 chunks |
+12 lines, -4 lines |
0 comments
|
Download
|
|
M |
build/config/android/internal_rules.gni
|
View
|
|
12 chunks |
+34 lines, -13 lines |
0 comments
|
Download
|
|
M |
build/config/android/rules.gni
|
View
|
1
2
|
13 chunks |
+26 lines, -11 lines |
0 comments
|
Download
|
|
M |
build/config/nacl/rules.gni
|
View
|
1
2
|
4 chunks |
+10 lines, -9 lines |
0 comments
|
Download
|
|
M |
build/toolchain/gcc_toolchain.gni
|
View
|
|
1 chunk |
+10 lines, -3 lines |
2 comments
|
Download
|
|
M |
build/toolchain/nacl_toolchain.gni
|
View
|
|
2 chunks |
+7 lines, -2 lines |
0 comments
|
Download
|
|
M |
components/cronet/android/BUILD.gn
|
View
|
|
11 chunks |
+11 lines, -11 lines |
0 comments
|
Download
|
|
M |
mojo/public/tools/bindings/mojom.gni
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
testing/test.gni
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
third_party/gif_player/BUILD.gn
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
third_party/jmake/BUILD.gn
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
third_party/netty-tcnative/BUILD.gn
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
tools/gn/function_forward_variables_from.cc
|
View
|
|
1 chunk |
+12 lines, -0 lines |
0 comments
|
Download
|
|
M |
tools/gn/function_forward_variables_from_unittest.cc
|
View
|
1
|
1 chunk |
+39 lines, -21 lines |
0 comments
|
Download
|
Total messages: 15 (6 generated)
|