summaryrefslogtreecommitdiff
path: root/rust/prebuilt.go
diff options
context:
space:
mode:
author Treehugger Robot <treehugger-gerrit@google.com> 2020-07-10 18:57:44 +0000
committer Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> 2020-07-10 18:57:44 +0000
commitc76b0fd5f3676fce8c4417f6c1d40cb63eb0bee0 (patch)
tree7f21e811bf0226b6170857a755f82b1b1d4d5ad4 /rust/prebuilt.go
parentfd1e267e409556b77735f7c88802806243e7cad8 (diff)
parent9c3f56a3aa5dd0f92155a8d5e137e79318b76a0e (diff)
Merge "Specify module dependency in the srcs list" am: 21143a601c am: 9c3f56a3aa
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1356365 Change-Id: I5e4cbd9d86ee9f99d2bbc08fce40dd4b56d9dcbc
Diffstat (limited to 'rust/prebuilt.go')
-rw-r--r--rust/prebuilt.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/rust/prebuilt.go b/rust/prebuilt.go
index 67d649d35..3b4f40a55 100644
--- a/rust/prebuilt.go
+++ b/rust/prebuilt.go
@@ -95,7 +95,8 @@ func (prebuilt *prebuiltLibraryDecorator) compilerProps() []interface{} {
func (prebuilt *prebuiltLibraryDecorator) compile(ctx ModuleContext, flags Flags, deps PathDeps) android.Path {
prebuilt.exportLinkDirs(android.PathsForModuleSrc(ctx, prebuilt.Properties.Link_dirs).Strings()...)
- srcPath := srcPathFromModuleSrcs(ctx, prebuilt.prebuiltSrcs())
+ srcPath, paths := srcPathFromModuleSrcs(ctx, prebuilt.prebuiltSrcs())
+ deps.SrcDeps = paths
prebuilt.unstrippedOutputFile = srcPath