fix(ext/ffi): allow setting a custom lib path for libtcc.a
@@ -58,6 +58,10 @@ fn main() {}
#[cfg(not(target_os = "windows"))]
fn main() {
+ if let Ok(tcc_path) = env::var("TCC_PATH") {
+ println!("cargo:rustc-link-search=native={}", tcc_path);
+ } else {
build_tcc();
+ }
println!("cargo:rustc-link-lib=static=tcc");
}
