Browse Source

Fixed linking error (temp solution)

pull/5/head
Andrea Ciliberti 3 years ago
parent
commit
d4385f7aaa
  1. 3
      src/main.rs

3
src/main.rs

@ -111,6 +111,8 @@ fn check_rust_version() { @@ -111,6 +111,8 @@ fn check_rust_version() {
}
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")
.arg("build")
.arg("-Z")
@ -118,6 +120,7 @@ fn build_elf(args: std::iter::Skip<env::Args>) { @@ -118,6 +120,7 @@ fn build_elf(args: std::iter::Skip<env::Args>) {
.arg("--target")
.arg("armv6k-nintendo-3ds")
.args(args)
.env("RUSTFLAGS", rustflags)
.stdin(Stdio::inherit())
.stdout(Stdio::inherit())
.stderr(Stdio::inherit())

Loading…
Cancel
Save