Skip to content

Commit 1883fdf

Browse files
committed
remove DEVKITARM
1 parent 682ec13 commit 1883fdf

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

build.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ use std::path::PathBuf;
55

66
pub fn main() {
77
let devkitpro_path = env::var("DEVKITPRO").unwrap();
8-
let devkitarm_path = env::var("DEVKITARM").unwrap();
98

109
println!("cargo:rustc-link-lib=static=nx");
1110
println!("cargo:rustc-link-search=native={}/libnx/lib", devkitpro_path);
@@ -14,20 +13,16 @@ pub fn main() {
1413
// to bindgen, and lets you build up options for
1514
// the resulting bindings.
1615
let bindings = bindgen::Builder::default()
17-
// The input header we would like to generate
18-
// bindings for.
16+
// The input header we would like to generate bindings for.
1917
.trust_clang_mangling(false)
2018
.use_core()
2119
.ctypes_prefix("lang_items")
2220

2321
.header("wrapper.h")
2422

2523
.clang_arg(format!("-I{}/libnx/include", devkitpro_path))
26-
.clang_arg(format!("-I{}/aarch64-none-elf/include", devkitarm_path))
27-
.clang_arg(format!("-I{}/lib/gcc/aarch64-none-elf/7.3.0/include", devkitarm_path))
24+
.clang_arg(format!("-I{}/devkitA64/aarch64-none-elf/include", devkitpro_path))
2825

29-
// .whitelist_function("consoleInit")
30-
// .whitelist_function("hidKeysDown")
3126
.bitfield_enum("HidMouseButton")
3227
.bitfield_enum("HidKeyboardModifier")
3328
.rustified_enum("HidKeyboardScancode")

0 commit comments

Comments
 (0)