diff --git a/build.rs b/build.rs index ce6231a..2cdb0fb 100644 --- a/build.rs +++ b/build.rs @@ -5,14 +5,6 @@ use std::{ }; fn main() { - fs::create_dir_all("build").expect("could not create build path"); - - let int_path = PathBuf::from("build") - .canonicalize() - .expect("cannot canonicalize path"); - - set_current_dir(int_path.clone()).expect("failed to change current directory"); - let wiringop_path = PathBuf::from( env::var("WIRINGOP_PATH").expect("could not retrieve wiringOP path from env"), ) @@ -37,7 +29,7 @@ fn main() { cc.static_flag(true).compile("wiringop"); let builder = bindgen::Builder::default() - .header("../ffi/wrapper.h") + .header("./ffi/wrapper.h") .detect_include_paths(true); let bindings = builder