summaryrefslogtreecommitdiff
path: root/rust/rust.go
diff options
context:
space:
mode:
author Ivan Lozano <ivanlozano@google.com> 2021-07-23 14:00:23 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2021-07-23 14:00:23 +0000
commitc76c802e6a70d5c1cd0c84349fce7e7dce8634e4 (patch)
treea07c47c07fed9383ce67bde9d8f67c09977d8f28 /rust/rust.go
parent65eb794a5a8ef23f526dfc025f2901ec2f385aa0 (diff)
parenta2268635f4f05cffb360b6c000b04e76c50c4fed (diff)
Merge "rust: Add support for bootstrap linker."
Diffstat (limited to 'rust/rust.go')
-rw-r--r--rust/rust.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/rust/rust.go b/rust/rust.go
index 52b409435..931cb9dde 100644
--- a/rust/rust.go
+++ b/rust/rust.go
@@ -85,6 +85,10 @@ type BaseProperties struct {
VendorRamdiskVariantNeeded bool `blueprint:"mutated"`
ExtraVariants []string `blueprint:"mutated"`
+ // Allows this module to use non-APEX version of libraries. Useful
+ // for building binaries that are started before APEXes are activated.
+ Bootstrap *bool
+
// Used by vendor snapshot to record dependencies from snapshot modules.
SnapshotSharedLibs []string `blueprint:"mutated"`
SnapshotStaticLibs []string `blueprint:"mutated"`
@@ -288,7 +292,7 @@ func (mod *Module) UseVndk() bool {
}
func (mod *Module) Bootstrap() bool {
- return false
+ return Bool(mod.Properties.Bootstrap)
}
func (mod *Module) MustUseVendorVariant() bool {