diff --git a/src/lib.rs b/src/lib.rs index 9337deb..9d43156 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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 }