Force the creation of libs instead of dylibs on CloudABI.

CloudABI doesn't support the creation of dynamic libraries. Any test
making use of auxiliary libraries will fail without this change applied.
This commit is contained in:
Ed Schouten 2018-01-02 14:18:40 +01:00
parent 3f880912e9
commit 04ce26a6f6

View File

@ -1368,9 +1368,10 @@ fn compose_and_run_compiler(&self, mut rustc: Command, input: Option<String>) ->
let crate_type = if aux_props.no_prefer_dynamic {
None
} else if (self.config.target.contains("musl") && !aux_props.force_host)
|| self.config.target.contains("wasm32")
} 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
// to avoid code size bloat and large binaries as much as possible