diff options
| author | 2021-03-24 12:44:09 +0000 | |
|---|---|---|
| committer | 2021-03-24 12:44:09 +0000 | |
| commit | 70204f9fc914f53ab85cf277b50abc6748234691 (patch) | |
| tree | f75757b4900aba5a188c31bc4204581f5a27c302 /rust/compiler.go | |
| parent | 8ef5b4f95fae49a7c5d61f0fa40f9cf86b1d0a48 (diff) | |
| parent | f1ff54a10b4abc248b0cfcc5d3c1ebbf534522c5 (diff) | |
Merge "rust: Drop libgcc dependency"
Diffstat (limited to 'rust/compiler.go')
| -rw-r--r-- | rust/compiler.go | 8 |
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 } |