From 1fa5a12e270fb650eb7534654a35ee1bb487832f Mon Sep 17 00:00:00 2001 From: Naxdy Date: Tue, 29 Oct 2024 19:21:57 +0100 Subject: [PATCH] fix: don't attempt to create folder in build.rs --- build.rs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) 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