diff options
author | Bert Belder <bertbelder@gmail.com> | 2018-08-09 02:15:27 +0200 |
---|---|---|
committer | Bert Belder <bertbelder@gmail.com> | 2018-08-09 02:20:32 +0200 |
commit | 69ee336840209b06b35a8393c0abe705aaf5cc11 (patch) | |
tree | c63a4b335d46ecaf6c948c40dc83fbbe2af9952d /build_extra/rust/rust.gni | |
parent | 15146ad8866d2af7f6e53570d3f12b76f2c13b86 (diff) |
Remove the 'cfg' variable from rust templates
It's never been used for anything other than enabling crate features.
Use the 'features' variable instead, it's more readable and more terse.
Diffstat (limited to 'build_extra/rust/rust.gni')
-rw-r--r-- | build_extra/rust/rust.gni | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/build_extra/rust/rust.gni b/build_extra/rust/rust.gni index 21b397282..8f63bcc08 100644 --- a/build_extra/rust/rust.gni +++ b/build_extra/rust/rust.gni @@ -40,7 +40,6 @@ template("run_rustc") { assert(defined(invoker.source_root), "Must specify source_root") forward_variables_from(invoker, [ - "cfg", "crate_name", "crate_type", "crate_version", @@ -123,15 +122,6 @@ template("run_rustc") { args += [ "--test" ] } - if (defined(cfg)) { - foreach(c, cfg) { - args += [ - "--cfg", - c, - ] - } - } - if (defined(features)) { foreach(f, features) { args += [ @@ -210,7 +200,6 @@ template("rust_component") { forward_variables_from(invoker, [ "args", - "cfg", "crate_version", "deps", "extern", |