0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-02-01 20:25:12 -05:00

fix(ext/ffi): allow setting a custom lib path for libtcc.a (#15208)

This commit is contained in:
Kayla Washburn 2022-07-14 16:01:07 -06:00 committed by GitHub
parent dbf5e95b59
commit 91a33c65f3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -58,6 +58,10 @@ fn main() {}
#[cfg(not(target_os = "windows"))]
fn main() {
build_tcc();
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");
}