Skip to content

Commit b773282

Browse files
committed
Use --sysroot ... instead of --sysroot=...
Rust's build system doesn't handle --sysroot=... correctly
1 parent 521d937 commit b773282

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build_system/build_sysroot.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ fn build_clif_sysroot_for_triple(
240240
rustflags.push_str(&format!(" -Zcodegen-backend={}", cg_clif_dylib_path.to_str().unwrap()));
241241
// Necessary for MinGW to find rsbegin.o and rsend.o
242242
rustflags
243-
.push_str(&format!(" --sysroot={}", RTSTARTUP_SYSROOT.to_path(dirs).to_str().unwrap()));
243+
.push_str(&format!(" --sysroot {}", RTSTARTUP_SYSROOT.to_path(dirs).to_str().unwrap()));
244244
if channel == "release" {
245245
rustflags.push_str(" -Zmir-opt-level=3");
246246
}

0 commit comments

Comments
 (0)