diff options
| author | 2020-08-27 21:53:11 +0000 | |
|---|---|---|
| committer | 2020-08-27 21:53:11 +0000 | |
| commit | 61b66563321f3f10b47dbd553244051dd456fc1a (patch) | |
| tree | 59aec7c84b9b073efc7a13ad66b9261592289d26 /rust/binary.go | |
| parent | ffcc1d5418302bf09f3828eb25274a3867157359 (diff) | |
| parent | b0e99edab15d059859b4d987c22fb6e500529476 (diff) | |
Merge "[rust] Pass cc dependencies as linker flags." am: b0e99edab1
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1410907
Change-Id: If88108a6ae5959ea57833f163f8d0c460a343d23
Diffstat (limited to 'rust/binary.go')
| -rw-r--r-- | rust/binary.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/rust/binary.go b/rust/binary.go index f75018626..d287a06ef 100644 --- a/rust/binary.go +++ b/rust/binary.go @@ -102,6 +102,7 @@ func (binary *binaryDecorator) compile(ctx ModuleContext, flags Flags, deps Path binary.unstrippedOutputFile = outputFile flags.RustFlags = append(flags.RustFlags, deps.depFlags...) + flags.LinkFlags = append(flags.LinkFlags, deps.linkObjects...) outputs := TransformSrcToBinary(ctx, srcPath, deps, flags, outputFile, deps.linkDirs) binary.coverageFile = outputs.coverageFile |