summaryrefslogtreecommitdiff
path: root/build_extra/rust/rust.gni
diff options
context:
space:
mode:
authorBert Belder <bertbelder@gmail.com>2018-08-09 02:15:27 +0200
committerBert Belder <bertbelder@gmail.com>2018-08-09 02:20:32 +0200
commit69ee336840209b06b35a8393c0abe705aaf5cc11 (patch)
treec63a4b335d46ecaf6c948c40dc83fbbe2af9952d /build_extra/rust/rust.gni
parent15146ad8866d2af7f6e53570d3f12b76f2c13b86 (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.gni11
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",