Skip to content

Commit 316d04b

Browse files
committed
Use --sysroot ... instead of --sysroot=...
Rust's build system doesn't handle --sysroot=... correctly
1 parent 7c57254 commit 316d04b

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
@@ -252,7 +252,7 @@ fn build_clif_sysroot_for_triple(
252252
rustflags.push_str(&format!(" -Zcodegen-backend={}", cg_clif_dylib_path.to_str().unwrap()));
253253
// Necessary for MinGW to find rsbegin.o and rsend.o
254254
rustflags
255-
.push_str(&format!(" --sysroot={}", RTSTARTUP_SYSROOT.to_path(dirs).to_str().unwrap()));
255+
.push_str(&format!(" --sysroot {}", RTSTARTUP_SYSROOT.to_path(dirs).to_str().unwrap()));
256256
if channel == "release" {
257257
rustflags.push_str(" -Zmir-opt-level=3");
258258
}

0 commit comments

Comments
 (0)