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:
parent
dbf5e95b59
commit
91a33c65f3
1 changed files with 5 additions and 1 deletions
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue