Commit 3847786
committed
bootstrap: Don't force -static for musl targets in cc-rs
I can't really make sense of this part. For musl targets that default to
static linkage, crt-static is set as a target feature and cc-rs should
be able to correctly infer that -static should be used. However, you
cannot compile rustc or run the tests with +crt-static, so you'd have to
disable it in bootstrap.toml anyways, bypassing this codepath entirely.
But for targets that are defaulting to dynamic linkage, hardcoding
-static for all musl targets in cc_detect just doesn't make sense. It
breaks the run-make tests because the compiler defaults (and is
configured!) to dynamically link dylibs, but the cc-rs configuration is
hardcoded to link them statically, which will fail.
Signed-off-by: Jens Reidel <[email protected]>1 parent d1ed52b commit 3847786
1 file changed
+0
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | 51 | | |
55 | 52 | | |
56 | 53 | | |
| |||
0 commit comments