summaryrefslogtreecommitdiff
path: root/rust/compiler.go
diff options
context:
space:
mode:
author ThiƩbaud Weksteen <tweek@google.com> 2021-03-24 12:44:09 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2021-03-24 12:44:09 +0000
commit70204f9fc914f53ab85cf277b50abc6748234691 (patch)
treef75757b4900aba5a188c31bc4204581f5a27c302 /rust/compiler.go
parent8ef5b4f95fae49a7c5d61f0fa40f9cf86b1d0a48 (diff)
parentf1ff54a10b4abc248b0cfcc5d3c1ebbf534522c5 (diff)
Merge "rust: Drop libgcc dependency"
Diffstat (limited to 'rust/compiler.go')
-rw-r--r--rust/compiler.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/rust/compiler.go b/rust/compiler.go
index 98ad7ad1b..200af9061 100644
--- a/rust/compiler.go
+++ b/rust/compiler.go
@@ -281,7 +281,7 @@ func (compiler *baseCompiler) compilerDeps(ctx DepsContext, deps Deps) Deps {
return deps
}
-func bionicDeps(deps Deps, static bool) Deps {
+func bionicDeps(ctx DepsContext, deps Deps, static bool) Deps {
bionicLibs := []string{}
bionicLibs = append(bionicLibs, "liblog")
bionicLibs = append(bionicLibs, "libc")
@@ -294,9 +294,9 @@ func bionicDeps(deps Deps, static bool) Deps {
deps.SharedLibs = append(deps.SharedLibs, bionicLibs...)
}
- //TODO(b/141331117) libstd requires libgcc on Android
- deps.StaticLibs = append(deps.StaticLibs, "libgcc")
-
+ if libRuntimeBuiltins := config.BuiltinsRuntimeLibrary(ctx.toolchain()); libRuntimeBuiltins != "" {
+ deps.StaticLibs = append(deps.StaticLibs, libRuntimeBuiltins)
+ }
return deps
}