Skip to content

Commit a781f9e

Browse files
committed
Use --sysroot ... instead of --sysroot=...
Rust's build system doesn't handle --sysroot=... correctly
1 parent 83a49f2 commit a781f9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build_system/build_sysroot.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ fn build_clif_sysroot_for_triple(
250250
rustflags.push_str(&format!(" -Zcodegen-backend={}", cg_clif_dylib_path.to_str().unwrap()));
251251
// Necessary for MinGW to find rsbegin.o and rsend.o
252252
rustflags
253-
.push_str(&format!(" --sysroot={}", RTSTARTUP_SYSROOT.to_path(dirs).to_str().unwrap()));
253+
.push_str(&format!(" --sysroot {}", RTSTARTUP_SYSROOT.to_path(dirs).to_str().unwrap()));
254254
if channel == "release" {
255255
rustflags.push_str(" -Zmir-opt-level=3");
256256
}

0 commit comments

Comments
 (0)