diff options
author | 2025-02-05 21:15:03 +0000 | |
---|---|---|
committer | 2025-02-06 06:16:02 -0800 | |
commit | 8ef256d5b311db8b3eac6775d846062c8b907548 (patch) | |
tree | 15f9284c784906295197079f581dcd1a11330fc0 /rust/rust.go | |
parent | e3089aca515e5840449530cf83ee6ac94fc66861 (diff) |
rust: Define UseSdk for Rust modules
Rust modules have the Sdk_version property now, so UseSdk should be able
to return non-false values now.
Bug: 203478530
Test: m & m rust
Change-Id: I468007880ba8688c127965b17e65230bc9aba113
Diffstat (limited to 'rust/rust.go')
-rw-r--r-- | rust/rust.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/rust/rust.go b/rust/rust.go index 5cc8c07ec..9082678bc 100644 --- a/rust/rust.go +++ b/rust/rust.go @@ -377,6 +377,9 @@ func (mod *Module) Toc() android.OptionalPath { } func (mod *Module) UseSdk() bool { + if cc.CanUseSdk(mod) { + return String(mod.Properties.Sdk_version) != "" + } return false } |