From 69ee336840209b06b35a8393c0abe705aaf5cc11 Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Thu, 9 Aug 2018 02:15:27 +0200 Subject: 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. --- build_extra/rust/rust.gni | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'build_extra/rust/rust.gni') 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", -- cgit v1.2.3