Skip to content

Commit 0b0b16b

Browse files
smaeulmati865
authored andcommitted
runtest: Fix proc-macro tests on musl hosts
1 parent 15d9b33 commit 0b0b16b

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/tools/compiletest/src/runtest.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1602,18 +1602,15 @@ impl<'test> TestCx<'test> {
16021602
None
16031603
} else if self.config.target.contains("cloudabi")
16041604
|| self.config.target.contains("emscripten")
1605-
|| (self.config.target.contains("musl") && !aux_props.force_host)
16061605
|| self.config.target.contains("wasm32")
16071606
{
16081607
// We primarily compile all auxiliary libraries as dynamic libraries
16091608
// to avoid code size bloat and large binaries as much as possible
16101609
// for the test suite (otherwise including libstd statically in all
16111610
// executables takes up quite a bit of space).
16121611
//
1613-
// For targets like MUSL or Emscripten, however, there is no support for
1614-
// dynamic libraries so we just go back to building a normal library. Note,
1615-
// however, that for MUSL if the library is built with `force_host` then
1616-
// it's ok to be a dylib as the host should always support dylibs.
1612+
// For targets like Emscripten, however, there is no support for
1613+
// dynamic libraries so we just go back to building a normal library.
16171614
Some("lib")
16181615
} else {
16191616
Some("dylib")

0 commit comments

Comments
 (0)