Skip to content

Commit

Permalink
fix(ext/ffi): allow setting a custom lib path for libtcc.a (#15208)
Browse files Browse the repository at this point in the history
  • Loading branch information
aslilac authored Jul 14, 2022
1 parent dbf5e95 commit 91a33c6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ext/ffi/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}

0 comments on commit 91a33c6

Please sign in to comment.