diff options
| author | Fenrir <[email protected]> | 2018-02-11 02:33:17 -0700 |
|---|---|---|
| committer | FenrirWolf <[email protected]> | 2018-02-11 03:10:13 -0700 |
| commit | 1dffa9cc165cb12b67370cb27387cf9ca502c6ea (patch) | |
| tree | 694be68a2e69fe7911df6941e399d99615d4dff3 /ctru-rs | |
| parent | We aren't linux (diff) | |
| download | archived-ctru-rs-1dffa9cc165cb12b67370cb27387cf9ca502c6ea.tar.xz archived-ctru-rs-1dffa9cc165cb12b67370cb27387cf9ca502c6ea.zip | |
Link libctru in ctru-sys
Allows debug builds to compile without throwing out random linker
errors. Plus it probably should have been this way the whole time
anyway.
Diffstat (limited to 'ctru-rs')
| -rw-r--r-- | ctru-rs/Cargo.toml | 1 | ||||
| -rw-r--r-- | ctru-rs/build.rs | 11 |
2 files changed, 0 insertions, 12 deletions
diff --git a/ctru-rs/Cargo.toml b/ctru-rs/Cargo.toml index c597f4a..f93902c 100644 --- a/ctru-rs/Cargo.toml +++ b/ctru-rs/Cargo.toml @@ -3,7 +3,6 @@ authors = ["Ronald Kinard <[email protected]>"] description = "A safe wrapper around smealum's ctrulib." license = "https://en.wikipedia.org/wiki/Zlib_License" name = "ctru-rs" -links = "ctru" version = "0.7.0" [lib] diff --git a/ctru-rs/build.rs b/ctru-rs/build.rs deleted file mode 100644 index cded1d0..0000000 --- a/ctru-rs/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", - }); -} |