aboutsummaryrefslogtreecommitdiff
path: root/ctru-sys
diff options
context:
space:
mode:
authorFenrir <[email protected]>2017-06-06 15:20:26 -0600
committerFenrir <[email protected]>2017-07-10 11:30:57 -0600
commit0f919b248f78d49489039703da4446afea81aae2 (patch)
tree81ccd4e27488a8bf89cad1d4c838dfb6c0cdd8bd /ctru-sys
parentUse bindgen for ctru_sys bindings (diff)
downloadctru-rs-0f919b248f78d49489039703da4446afea81aae2.tar.xz
ctru-rs-0f919b248f78d49489039703da4446afea81aae2.zip
Handle linking in ctru-rs build script
Diffstat (limited to 'ctru-sys')
-rw-r--r--ctru-sys/Cargo.toml1
-rw-r--r--ctru-sys/build.rs7
2 files changed, 0 insertions, 8 deletions
diff --git a/ctru-sys/Cargo.toml b/ctru-sys/Cargo.toml
index b78e6b7..6dc1201 100644
--- a/ctru-sys/Cargo.toml
+++ b/ctru-sys/Cargo.toml
@@ -3,7 +3,6 @@ name = "ctru-sys"
version = "0.4.0"
authors = ["Ronald Kinard <[email protected]>"]
license = "https://en.wikipedia.org/wiki/Zlib_License"
-links = "ctru"
[dependencies.libc]
version = "0.2"
diff --git a/ctru-sys/build.rs b/ctru-sys/build.rs
index a75e858..a1d5801 100644
--- a/ctru-sys/build.rs
+++ b/ctru-sys/build.rs
@@ -6,13 +6,6 @@ use std::path::PathBuf;
fn main() {
let devkitpro_path = PathBuf::from(env::var("DEVKITPRO").unwrap());
- println!("cargo:rustc-link-search=native={}", devkitpro_path.join("libctru/lib").display());
- println!("cargo:rustc-link-lib=static={}", match env::var("PROFILE").unwrap().as_str() {
- "release" => "ctru",
- "debug" => "ctrud",
- _ => unreachable!(),
- });
-
let bindings = bindgen::Builder::default()
.use_core()
.trust_clang_mangling(false)