From f5e5a6fdf58f3135f3211135bfbcb6e70630309f Mon Sep 17 00:00:00 2001 From: omniscient <17525998+omnisci3nce@users.noreply.github.com> Date: Fri, 26 Jul 2024 18:58:43 +1000 Subject: fix glfw get key range so it doesnt panic on mac --- bindgen/rust/celeritas-sys/build.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bindgen/rust/celeritas-sys/build.rs') diff --git a/bindgen/rust/celeritas-sys/build.rs b/bindgen/rust/celeritas-sys/build.rs index 4f85bc6..097e26b 100644 --- a/bindgen/rust/celeritas-sys/build.rs +++ b/bindgen/rust/celeritas-sys/build.rs @@ -3,6 +3,7 @@ use std::path::PathBuf; fn main() { // Tell cargo to look for shared libraries in the specified directory + // TODO: we need to look based on OS println!("cargo:rustc-link-search=../../../build/macosx/arm64/debug"); // println!("cargo:rustc-link-search=../../build/windows/x64/debug"); @@ -10,6 +11,7 @@ fn main() { // shared library. println!("cargo:rustc-link-lib=core_static"); println!("cargo:rustc-link-lib=glfw3"); + // TODO: ^ use our locally compiled glfw // The bindgen::Builder is the main entry point // to bindgen, and lets you build up options for -- cgit v1.2.3-70-g09d2