summaryrefslogtreecommitdiff
path: root/rust/compiler.go
diff options
context:
space:
mode:
author Ivan Lozano <ivanlozano@google.com> 2023-11-14 10:23:31 -0500
committer Ivan Lozano <ivanlozano@google.com> 2023-11-14 10:40:08 -0500
commitc518202e2844c94c5205b8b5f2b11a1a9e7f1024 (patch)
tree241fcf65ca7758b113aa6bfb0d2a25afabbb335b /rust/compiler.go
parent04445d54430b41905c7ccc013286269bcf75a5f9 (diff)
rust: Allow no_stdlibs per-target variants.
stdlibs can be set per-target, it makes to sense to allow no_stdlibs to be set per-target as well. Bug: 310924208 Test: Android.bp with per-target no_stdlibs builds. Change-Id: I1c3a458a849367d2c363bd5f65af77b8cce8c0e0
Diffstat (limited to 'rust/compiler.go')
-rw-r--r--rust/compiler.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/compiler.go b/rust/compiler.go
index b3f574d57..4c7961d44 100644
--- a/rust/compiler.go
+++ b/rust/compiler.go
@@ -160,7 +160,7 @@ type BaseCompilerProperties struct {
Relative_install_path *string `android:"arch_variant"`
// whether to suppress inclusion of standard crates - defaults to false
- No_stdlibs *bool
+ No_stdlibs *bool `android:"arch_variant"`
// Change the rustlibs linkage to select rlib linkage by default for device targets.
// Also link libstd as an rlib as well on device targets.