diff options
author | 2023-11-27 17:51:58 +0000 | |
---|---|---|
committer | 2023-11-27 17:54:03 +0000 | |
commit | 5a3c71c1aa83e7258ff11ceb8249052003fdbd47 (patch) | |
tree | f5f1a102c94793bbc824e130fc7aad44ead349c6 /rust/project_json.go | |
parent | db72f7ed803df370951f7a03bd6f6fcad1b357e2 (diff) |
rust: rust-project.json: Skip disabled modules
Disabled modules may not have a valid root path.
Bug: 313410568
Test: SOONG_GEN_RUST_PROJECT=1 m nothing
Change-Id: I253cca18493193245aa198adfce5fd75cf27cefb
Diffstat (limited to 'rust/project_json.go')
-rw-r--r-- | rust/project_json.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/rust/project_json.go b/rust/project_json.go index 83c16ca38..ad9b69020 100644 --- a/rust/project_json.go +++ b/rust/project_json.go @@ -119,6 +119,9 @@ func isModuleSupported(ctx android.SingletonContext, module android.Module) (*Mo if !ok { return nil, false } + if !rModule.Enabled() { + return nil, false + } return rModule, true } |