commit | 8ef256d5b311db8b3eac6775d846062c8b907548 | [log] [tgz] |
---|---|---|
author | Ivan Lozano <ivanlozano@google.com> | Wed Feb 05 21:15:03 2025 +0000 |
committer | Ivan Lozano <ivanlozano@google.com> | Thu Feb 06 06:16:02 2025 -0800 |
tree | 15f9284c784906295197079f581dcd1a11330fc0 | |
parent | e3089aca515e5840449530cf83ee6ac94fc66861 [diff] [blame] |
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
diff --git a/rust/rust.go b/rust/rust.go index 5cc8c07..9082678 100644 --- a/rust/rust.go +++ b/rust/rust.go
@@ -377,6 +377,9 @@ } func (mod *Module) UseSdk() bool { + if cc.CanUseSdk(mod) { + return String(mod.Properties.Sdk_version) != "" + } return false }