summaryrefslogtreecommitdiff
path: root/rust/library.go
diff options
context:
space:
mode:
author Treehugger Robot <treehugger-gerrit@google.com> 2020-06-19 20:25:47 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2020-06-19 20:25:47 +0000
commitf649c05239bce33d713b23941742fd63aa0aeaab (patch)
tree675f02c5c1b69b7b17c80f12146e6972976787dd /rust/library.go
parent181c2a40d8465372a44ee34109c7ea1d7b9ce21d (diff)
parent7e741cca301006b5e5801e14a180a8b346b2aa83 (diff)
Merge "[Rust] cdylibs can now link against dylibs."
Diffstat (limited to 'rust/library.go')
-rw-r--r--rust/library.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/rust/library.go b/rust/library.go
index 704c77b40..3c948ea09 100644
--- a/rust/library.go
+++ b/rust/library.go
@@ -305,8 +305,8 @@ func (library *libraryDecorator) compilerProps() []interface{} {
func (library *libraryDecorator) compilerDeps(ctx DepsContext, deps Deps) Deps {
- // TODO(b/144861059) Remove if C libraries support dylib linkage in the future.
- if !ctx.Host() && (library.static() || library.shared()) {
+ // TODO(b/155498724) Remove if C static libraries no longer require libstd as an rlib dependency.
+ if !ctx.Host() && library.static() {
library.setNoStdlibs()
for _, stdlib := range config.Stdlibs {
deps.Rlibs = append(deps.Rlibs, stdlib+".static")