Skip to content

Commit e93b705

Browse files
NobodyXumadsmtm
andauthored
Fix wasm32-unknown-unknown by passing -c (#1424)
* Fix wasm32-unknown-unknown by passing -c Fix #1423 * Update lib.rs Co-authored-by: Mads Marquart <[email protected]> --------- Co-authored-by: Mads Marquart <[email protected]>
1 parent 1dd0989 commit e93b705

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/lib.rs

+6
Original file line numberDiff line numberDiff line change
@@ -1351,6 +1351,12 @@ impl Build {
13511351
},
13521352
);
13531353

1354+
// Checking for compiler flags does not require linking (and we _must_
1355+
// avoid making it do so, since it breaks cross-compilation when the C
1356+
// compiler isn't configured to be able to link).
1357+
// https://github.com/rust-lang/cc-rs/issues/1423
1358+
cmd.arg("-c");
1359+
13541360
if compiler.supports_path_delimiter() {
13551361
cmd.arg("--");
13561362
}

0 commit comments

Comments
 (0)