summaryrefslogtreecommitdiff
path: root/rust/library.go
diff options
context:
space:
mode:
author Ivan Lozano <ivanlozano@google.com> 2019-09-20 11:00:37 -0700
committer Ivan Lozano <ivanlozano@google.com> 2019-09-24 10:35:28 -0700
commitf1c8433b40d2b62ec4bc87db8189fd655b817b5a (patch)
tree4e106bc747be28fbb5d0897c3ad6431d7d35f951 /rust/library.go
parent5ca5ef6788a557f28edb8feea89e4493af2f4a67 (diff)
Add AArch64 device Rust toolchain.
Bug: 141207434 Test: build example rust device module. Change-Id: I0932a614942bf4a4d4b6c153fcc4fc79c7f202bd
Diffstat (limited to 'rust/library.go')
-rw-r--r--rust/library.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/rust/library.go b/rust/library.go
index 5cf8ac700..c831727c5 100644
--- a/rust/library.go
+++ b/rust/library.go
@@ -191,6 +191,16 @@ func (library *libraryDecorator) compilerProps() []interface{} {
&library.MutatedProperties)
}
+func (library *libraryDecorator) compilerDeps(ctx DepsContext, deps Deps) Deps {
+ deps = library.baseCompiler.compilerDeps(ctx, deps)
+
+ if ctx.toolchain().Bionic() && library.dylib() {
+ deps = library.baseCompiler.bionicDeps(ctx, deps)
+ }
+
+ return deps
+}
+
func (library *libraryDecorator) compile(ctx ModuleContext, flags Flags, deps PathDeps) android.Path {
var outputFile android.WritablePath