Browse Source

Set build-std flag before trailing arguments

pull/24/head
Mark Drobnak 2 years ago
parent
commit
cb3a9a19ff
No known key found for this signature in database
GPG Key ID: 47A133F3BF9D03D3
  1. 12
      src/lib.rs

12
src/lib.rs

@ -126,17 +126,19 @@ pub fn make_cargo_build_command( @@ -126,17 +126,19 @@ pub fn make_cargo_build_command(
.arg("--target")
.arg("armv6k-nintendo-3ds")
.arg("--message-format")
.arg(message_format)
.args(args)
.stdout(Stdio::piped())
.stdin(Stdio::inherit())
.stderr(Stdio::inherit());
.arg(message_format);
if !sysroot.join("lib/rustlib/armv6k-nintendo-3ds").exists() {
eprintln!("No pre-build std found, using build-std");
command.arg("-Z").arg("build-std");
}
command
.args(args)
.stdout(Stdio::piped())
.stdin(Stdio::inherit())
.stderr(Stdio::inherit());
command
}

Loading…
Cancel
Save