Chromium Code Reviews| Index: build/config/linux/pkg_config.gni |
| diff --git a/build/config/linux/pkg_config.gni b/build/config/linux/pkg_config.gni |
| index 34ed1afa17c1ce004aa461bab258c564b23d91bb..914ca8d6e728ae8eb3826e760246c6561fe28df6 100644 |
| --- a/build/config/linux/pkg_config.gni |
| +++ b/build/config/linux/pkg_config.gni |
| @@ -73,11 +73,10 @@ template("pkg_config") { |
| ldflags = pkgresult[4] |
| } |
| - if (defined(invoker.defines)) { |
| - defines = invoker.defines |
| - } |
| - if (defined(invoker.visibility)) { |
| - visibility = invoker.visibility |
| - } |
| + forward_variables_from(invoker, |
| + [ |
| + "defines", |
| + "visibility", |
| + ]) |
|
Dirk Pranke
2015/08/04 18:19:22
it's a bit goofy that this is five lines instead o
brettw
2015/08/04 19:10:25
I agree, we should fix the autoformatter at some p
|
| } |
| } |