From 05e87af94842fcde12bc2f96745f1cefe91e136d Mon Sep 17 00:00:00 2001 From: Fenrir Date: Sun, 11 Feb 2018 02:42:22 -0700 Subject: [PATCH] Remove build script from examples --- examples/Cargo.toml | 2 -- examples/build.rs | 11 ----------- 2 files changed, 13 deletions(-) delete mode 100644 examples/build.rs diff --git a/examples/Cargo.toml b/examples/Cargo.toml index 412b5b2..4ced567 100644 --- a/examples/Cargo.toml +++ b/examples/Cargo.toml @@ -5,9 +5,7 @@ version = "0.1.0" [dependencies] ctru-rs = { path = "../ctru-rs" } - [profile.dev] -lto = true [profile.release] lto = true diff --git a/examples/build.rs b/examples/build.rs deleted file mode 100644 index cded1d0..0000000 --- a/examples/build.rs +++ /dev/null @@ -1,11 +0,0 @@ -use std::env; - -fn main() { - let dkp_path = env::var("DEVKITPRO").unwrap(); - - println!("cargo:rustc-link-search=native={}/libctru/lib", dkp_path); - println!("cargo:rustc-link-lib=static={}", match env::var("PROFILE").unwrap().as_str() { - "debug" => "ctrud", - _ => "ctru", - }); -}