From 5a3c71c1aa83e7258ff11ceb8249052003fdbd47 Mon Sep 17 00:00:00 2001 From: Matthew Maurer Date: Mon, 27 Nov 2023 17:51:58 +0000 Subject: [PATCH] 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 --- rust/project_json.go | 3 +++ 1 file changed, 3 insertions(+) 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 }