summaryrefslogtreecommitdiff
path: root/rust/rust.go
diff options
context:
space:
mode:
author Ivan Lozano <ivanlozano@google.com> 2025-02-06 09:58:22 -0800
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2025-02-06 09:58:22 -0800
commitd0944b409ce38585e09e1dfc8f671e8c41ca6d05 (patch)
treec5237c105b8e96152a5cab1eec31bd9a1c18b5d7 /rust/rust.go
parent917b0ec873a3bd50808378fe0c41ec9c20efa3b0 (diff)
parentcf7c1322a38653e68b69a25309fe445b88c13b42 (diff)
Merge changes I902cfb76,I46800788 into main
* changes: rust: Use libprofile-clang-extras_ndk for SDK cov rust: Define UseSdk for Rust modules
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 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
}