diff options
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 81c33e688..7880dee8c 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 } |