diff options
author | Samuel Holland <samuel@sholland.org> | 2018-12-30 02:42:43 +0000 |
---|---|---|
committer | Samuel Holland <samuel@sholland.org> | 2018-12-30 07:41:26 +0000 |
commit | 3ad04696702c67ecbb84ee44d20b2489d77d841f (patch) | |
tree | 3726f103454f5e932a342f1caad38eb459751d89 /user/rust/0012-runtest-Fix-proc-macro-tests-on-musl-hosts.patch | |
parent | 1f3a1b66721aa8c259d5f5ada4b5e55da526a2d6 (diff) | |
download | packages-3ad04696702c67ecbb84ee44d20b2489d77d841f.tar.gz packages-3ad04696702c67ecbb84ee44d20b2489d77d841f.tar.bz2 packages-3ad04696702c67ecbb84ee44d20b2489d77d841f.tar.xz packages-3ad04696702c67ecbb84ee44d20b2489d77d841f.zip |
user/rust: Bump to 1.31.1
Diffstat (limited to 'user/rust/0012-runtest-Fix-proc-macro-tests-on-musl-hosts.patch')
-rw-r--r-- | user/rust/0012-runtest-Fix-proc-macro-tests-on-musl-hosts.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/user/rust/0012-runtest-Fix-proc-macro-tests-on-musl-hosts.patch b/user/rust/0012-runtest-Fix-proc-macro-tests-on-musl-hosts.patch new file mode 100644 index 000000000..c8b2529d8 --- /dev/null +++ b/user/rust/0012-runtest-Fix-proc-macro-tests-on-musl-hosts.patch @@ -0,0 +1,37 @@ +From 050dfd0e91b92cb350ca52599266cefc6c765106 Mon Sep 17 00:00:00 2001 +From: Samuel Holland <samuel@sholland.org> +Date: Sun, 16 Sep 2018 16:40:04 +0000 +Subject: [PATCH 12/23] runtest: Fix proc-macro tests on musl hosts + +--- + src/tools/compiletest/src/runtest.rs | 7 ++----- + 1 file changed, 2 insertions(+), 5 deletions(-) + +diff --git a/src/tools/compiletest/src/runtest.rs b/src/tools/compiletest/src/runtest.rs +index a80bbd401a..bbe0a6fb7a 100644 +--- a/src/tools/compiletest/src/runtest.rs ++++ b/src/tools/compiletest/src/runtest.rs +@@ -1582,7 +1582,6 @@ impl<'test> TestCx<'test> { + None + } else if self.config.target.contains("cloudabi") + || self.config.target.contains("emscripten") +- || (self.config.target.contains("musl") && !aux_props.force_host) + || self.config.target.contains("wasm32") + { + // We primarily compile all auxiliary libraries as dynamic libraries +@@ -1590,10 +1589,8 @@ impl<'test> TestCx<'test> { + // for the test suite (otherwise including libstd statically in all + // executables takes up quite a bit of space). + // +- // For targets like MUSL or Emscripten, however, there is no support for +- // dynamic libraries so we just go back to building a normal library. Note, +- // however, that for MUSL if the library is built with `force_host` then +- // it's ok to be a dylib as the host should always support dylibs. ++ // For targets like Emscripten, however, there is no support for ++ // dynamic libraries so we just go back to building a normal library. + Some("lib") + } else { + Some("dylib") +-- +2.19.2 + |