mirror of
https://github.com/napi-rs/napi-rs.git
synced 2025-12-08 19:56:07 +00:00
fix(build): add back undefined symbols lookup behavior (#3015)
This commit is contained in:
parent
8a60cd0f64
commit
f61c6e9f6e
@ -30,6 +30,12 @@ pub fn setup() {
|
||||
"wasi" => {
|
||||
wasi::setup();
|
||||
}
|
||||
"macos" => {
|
||||
// Keep the dynamic lookup behavior on macOS to avoid breaking changes.
|
||||
println!("cargo:rustc-cdylib-link-arg=-Wl");
|
||||
println!("cargo:rustc-cdylib-link-arg=-undefined");
|
||||
println!("cargo:rustc-cdylib-link-arg=dynamic_lookup");
|
||||
}
|
||||
"windows" => {
|
||||
if let Ok("gnu") = env::var("CARGO_CFG_TARGET_ENV").as_deref() {
|
||||
windows::setup_gnu();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user