diff options
author | 2023-08-08 02:00:22 +0000 | |
---|---|---|
committer | 2023-08-08 16:54:34 +0000 | |
commit | 846ce68a2f1bbfa68bc472cc028b84052ab9a57d (patch) | |
tree | f5b97480657415ba2bb5998547709e3675dfb8af /rust/testing.go | |
parent | 479e39f8fb705ab1fbd363b72cc337584ba777a7 (diff) |
Handle enabled: false via conditions_default
In this Android.bp file
```
my_cc_defaults {
enabled: false,
soong_config_variables: {
my_bool_variable: {
conditions_default: {enabled: false},
}
}
}
```
The inner enabled: false is a no-op because the top-level enabled is
false. Currently, bp2build will raise an exception for this Android.bp
file.
However, it does not need to. `productVariableConfigEnableLabels` runs
only if the top-level enabled is false. If it sees enabled: false via
conditions_default, it should just ignore it since it is a no-op.
Test: go test ./bp2build
Bug: 210546943
Change-Id: I816f209eaf21de65ddfbc2893e5255be94bcaa11
Diffstat (limited to 'rust/testing.go')
0 files changed, 0 insertions, 0 deletions