Use --sysroot ... instead of --sysroot=...

Rust's build system doesn't handle --sysroot=... correctly
This commit is contained in:
bjorn3 2023-02-15 18:25:18 +00:00
parent 521d937116
commit b773282309

View File

@ -240,7 +240,7 @@ fn build_clif_sysroot_for_triple(
rustflags.push_str(&format!(" -Zcodegen-backend={}", cg_clif_dylib_path.to_str().unwrap()));
// Necessary for MinGW to find rsbegin.o and rsend.o
rustflags
.push_str(&format!(" --sysroot={}", RTSTARTUP_SYSROOT.to_path(dirs).to_str().unwrap()));
.push_str(&format!(" --sysroot {}", RTSTARTUP_SYSROOT.to_path(dirs).to_str().unwrap()));
if channel == "release" {
rustflags.push_str(" -Zmir-opt-level=3");
}