diff options
author | 2024-10-03 01:13:24 +0000 | |
---|---|---|
committer | 2024-10-03 01:15:56 +0000 | |
commit | 091ffd8883975432d8e832296cd8aede37aae676 (patch) | |
tree | 4f6b742126ac9173567adc042ca0ddcd1302191c /rust/project_json.go | |
parent | 46694ccbbd2207e3346b2580206862640ca11734 (diff) |
Make the rust features property configurable
Test: m nothing --no-skip-soong-tests
Bug: 364533958
Change-Id: I2aa5b7e1cf5e8c94448e4562e8b9aebe6edacfe5
Diffstat (limited to 'rust/project_json.go')
-rw-r--r-- | rust/project_json.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/project_json.go b/rust/project_json.go index 24dcc89f1..6c1e32047 100644 --- a/rust/project_json.go +++ b/rust/project_json.go @@ -151,7 +151,7 @@ func (singleton *projectGeneratorSingleton) addCrate(ctx android.SingletonContex crate.Env["OUT_DIR"] = rModule.compiler.cargoOutDir().String() } - for _, feature := range rModule.compiler.features() { + for _, feature := range rModule.compiler.features(ctx, rModule) { crate.Cfg = append(crate.Cfg, "feature=\""+feature+"\"") } |