diff --git a/build/src/lib.rs b/build/src/lib.rs index 5f18b121..3adf6b04 100644 --- a/build/src/lib.rs +++ b/build/src/lib.rs @@ -60,6 +60,7 @@ cfg_if! { } else if #[cfg(target_os = "macos")] { /// Set up the build environment by setting Cargo configuration variables. pub fn setup() { + println!("cargo:rustc-cdylib-link-arg=-Wl"); println!("cargo:rustc-cdylib-link-arg=-undefined"); println!("cargo:rustc-cdylib-link-arg=dynamic_lookup"); setup_napi_feature(); diff --git a/test_module/package.json b/test_module/package.json index 7cccf128..1672b67a 100644 --- a/test_module/package.json +++ b/test_module/package.json @@ -3,7 +3,7 @@ "version": "1.0.0", "scripts": { "build": "cargo build && node ../scripts/index.js build ./index", - "build-release": "cargo build --release && node ../scripts/napi.js build --release ./index", + "build-release": "cargo build --release && node ../scripts/index.js build --release ./index", "test": "node ./index.js" } }