|
|
@ -111,6 +111,8 @@ fn check_rust_version() { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
fn build_elf(args: std::iter::Skip<env::Args>) { |
|
|
|
fn build_elf(args: std::iter::Skip<env::Args>) { |
|
|
|
|
|
|
|
let rustflags = format!("-L{}/libctru/lib -lctru ", env::var("DEVKITPRO").unwrap()); |
|
|
|
|
|
|
|
|
|
|
|
let mut process = Command::new("cargo") |
|
|
|
let mut process = Command::new("cargo") |
|
|
|
.arg("build") |
|
|
|
.arg("build") |
|
|
|
.arg("-Z") |
|
|
|
.arg("-Z") |
|
|
@ -118,6 +120,7 @@ fn build_elf(args: std::iter::Skip<env::Args>) { |
|
|
|
.arg("--target") |
|
|
|
.arg("--target") |
|
|
|
.arg("armv6k-nintendo-3ds") |
|
|
|
.arg("armv6k-nintendo-3ds") |
|
|
|
.args(args) |
|
|
|
.args(args) |
|
|
|
|
|
|
|
.env("RUSTFLAGS", rustflags) |
|
|
|
.stdin(Stdio::inherit()) |
|
|
|
.stdin(Stdio::inherit()) |
|
|
|
.stdout(Stdio::inherit()) |
|
|
|
.stdout(Stdio::inherit()) |
|
|
|
.stderr(Stdio::inherit()) |
|
|
|
.stderr(Stdio::inherit()) |
|
|
|