@@ -55,14 +55,13 @@ fn build_library(src_path: &Path, language: &str) -> Result<()> {
5555 if !recompile {
5656 return Ok(());
5757 }
58− let build_dir = std::env::var("OUT_DIR").unwrap();
5958 let mut config = cc::Build::new();
6059 config.cpp(true).opt_level(2).cargo_metadata(false);
6160 // .target(BUILD_TARGET)
6261 // .host(BUILD_TARGET);
6362 let compiler = config.get_compiler();
6463 let mut command = Command::new(compiler.path());
65− command.current_dir(build_dir);
64+ command.current_dir(src_path);
6665 for (key, value) in compiler.env() {
6766 command.env(key, value);
6867 }