diff options
author | Ivan Lozano <ivanlozano@google.com> | 2020-08-27 20:50:16 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2020-08-27 20:50:16 +0000 |
commit | b0e99edab15d059859b4d987c22fb6e500529476 (patch) | |
tree | 59aec7c84b9b073efc7a13ad66b9261592289d26 /rust/binary.go | |
parent | 03333d0e2f478aba21c3077dfdb69bd0593eaf3c (diff) | |
parent | 2093af23c06429f5dd22dbae5d47ef800a9fb379 (diff) |
Merge "[rust] Pass cc dependencies as linker flags."
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 |