Skip to content

Commit 294a9fe

Browse files
committed
runtest: Fix proc-macro tests on musl hosts
1 parent e587a3f commit 294a9fe

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/tools/compiletest/src/runtest.rs

+2-5
Original file line numberDiff line numberDiff line change
@@ -1507,18 +1507,15 @@ impl<'test> TestCx<'test> {
15071507
None
15081508
} else if self.config.target.contains("cloudabi")
15091509
|| self.config.target.contains("emscripten")
1510-
|| (self.config.target.contains("musl") && !aux_props.force_host)
15111510
|| self.config.target.contains("wasm32")
15121511
{
15131512
// We primarily compile all auxiliary libraries as dynamic libraries
15141513
// to avoid code size bloat and large binaries as much as possible
15151514
// for the test suite (otherwise including libstd statically in all
15161515
// executables takes up quite a bit of space).
15171516
//
1518-
// For targets like MUSL or Emscripten, however, there is no support for
1519-
// dynamic libraries so we just go back to building a normal library. Note,
1520-
// however, that for MUSL if the library is built with `force_host` then
1521-
// it's ok to be a dylib as the host should always support dylibs.
1517+
// For targets like Emscripten, however, there is no support for
1518+
// dynamic libraries so we just go back to building a normal library.
15221519
Some("lib")
15231520
} else {
15241521
Some("dylib")

0 commit comments

Comments
 (0)