summaryrefslogtreecommitdiff
path: root/rust/bindgen.go
diff options
context:
space:
mode:
author Ivan Lozano <ivanlozano@google.com> 2020-10-02 10:03:23 -0400
committer Ivan Lozano <ivanlozano@google.com> 2020-10-02 12:31:23 -0400
commitbf63d00c5487d18d69e1040a94400546f0750476 (patch)
tree8785122fb3c3b81f91499da801b4887c6506ddd2 /rust/bindgen.go
parent45dda43df0b32122d833d43166f2fa2f9a170889 (diff)
rust: Add static binary support
Adds the "static_executable" property to rust_binary modules which allows for building fully static executables. This only impacts bionic targets. Bug: 169434439 Test: rust_binary module with static_executable true builds, runs on device. Change-Id: I83c19fddd070859b7e56d248237cfd73e1768519
Diffstat (limited to 'rust/bindgen.go')
-rw-r--r--rust/bindgen.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/bindgen.go b/rust/bindgen.go
index d8d126d37..e5112de5d 100644
--- a/rust/bindgen.go
+++ b/rust/bindgen.go
@@ -267,7 +267,7 @@ func NewRustBindgen(hod android.HostOrDeviceSupported) (*Module, *bindgenDecorat
func (b *bindgenDecorator) SourceProviderDeps(ctx DepsContext, deps Deps) Deps {
deps = b.BaseSourceProvider.SourceProviderDeps(ctx, deps)
if ctx.toolchain().Bionic() {
- deps = bionicDeps(deps)
+ deps = bionicDeps(deps, false)
}
deps.SharedLibs = append(deps.SharedLibs, b.Properties.Shared_libs...)