summaryrefslogtreecommitdiff
path: root/rust/binary.go
diff options
context:
space:
mode:
authorIvan Lozano <ivanlozano@google.com>2021-02-05 15:53:33 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2021-02-05 15:53:33 +0000
commit729d5cf097f43af9f5881b53f03b2c715b7a0158 (patch)
tree1813868b17c632f9bdf6f43e630e245a2f4992d2 /rust/binary.go
parentb7eab01167af0320e2552826381497111a4c66c6 (diff)
parent3dfa12db6c643672b1c41e577c95ef527ebdb0af (diff)
Merge "rust: Pass cc static libs to rustc."
Diffstat (limited to 'rust/binary.go')
-rw-r--r--rust/binary.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/rust/binary.go b/rust/binary.go
index 0334accef..df489169b 100644
--- a/rust/binary.go
+++ b/rust/binary.go
@@ -119,6 +119,7 @@ func (binary *binaryDecorator) compile(ctx ModuleContext, flags Flags, deps Path
outputFile := android.PathForModuleOut(ctx, fileName)
flags.RustFlags = append(flags.RustFlags, deps.depFlags...)
+ flags.LinkFlags = append(flags.LinkFlags, deps.depLinkFlags...)
flags.LinkFlags = append(flags.LinkFlags, deps.linkObjects...)
TransformSrcToBinary(ctx, srcPath, deps, flags, outputFile, deps.linkDirs)