Use --sysroot ... instead of --sysroot=...
Rust's build system doesn't handle --sysroot=... correctly
This commit is contained in:
parent
521d937116
commit
b773282309
@ -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");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user