diff options
author | ThiƩbaud Weksteen <tweek@google.com> | 2021-03-22 14:24:54 +0100 |
---|---|---|
committer | ThiƩbaud Weksteen <tweek@google.com> | 2021-03-23 13:55:40 +0100 |
commit | f1ff54a10b4abc248b0cfcc5d3c1ebbf534522c5 (patch) | |
tree | a93b7286a7db48bccec791d2a0c21691db8cdab0 /rust/binary.go | |
parent | 50e49818a3339039faf6c3142db7da175770b486 (diff) |
rust: Drop libgcc dependency
Rustc unstable option "link-native-libraries" is used to prevent the
linkage of other libraries via the #[link] directive. Add a dependency
to libclang_rt.builtins, similarly to cc.
Bug: 141331117
Test: lunch aosp_crosshatch-userdebug; m
Change-Id: I5c232291a5dd08a99e6a12a1295e30bb8e4fcaf1
Diffstat (limited to 'rust/binary.go')
-rw-r--r-- | rust/binary.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/binary.go b/rust/binary.go index df489169b..dfe8744a1 100644 --- a/rust/binary.go +++ b/rust/binary.go @@ -87,7 +87,7 @@ func (binary *binaryDecorator) compilerDeps(ctx DepsContext, deps Deps) Deps { deps = binary.baseCompiler.compilerDeps(ctx, deps) if ctx.toolchain().Bionic() { - deps = bionicDeps(deps, Bool(binary.Properties.Static_executable)) + deps = bionicDeps(ctx, deps, Bool(binary.Properties.Static_executable)) if Bool(binary.Properties.Static_executable) { deps.CrtBegin = "crtbegin_static" } else { |