summaryrefslogtreecommitdiff
path: root/rust/rust.go
diff options
context:
space:
mode:
Diffstat (limited to 'rust/rust.go')
-rw-r--r--rust/rust.go3
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
}