Browse Source

Fix ctru-rs build script

The debug/release stuff isn't used until the next official release of libctru
pull/10/head
Fenrir 8 years ago
parent
commit
1fc8156d31
  1. 6
      ctru-rs/build.rs

6
ctru-rs/build.rs

@ -3,11 +3,5 @@ use std::path::PathBuf; @@ -3,11 +3,5 @@ use std::path::PathBuf;
fn main() {
let dkp_path = PathBuf::from(env::var("DEVKITPRO").unwrap());
println!("cargo:rustc-link-search=native={}", dkp_path.join("libctru/lib").display());
println!("cargo:rustc-link-lib=static={}", match env::var("PROFILE").unwrap().as_str() {
"release" => "ctru",
"debug" => "ctrud",
_ => unreachable!(),
});
}

Loading…
Cancel
Save