/
githubmirror
/
deno
Обзор
Документация
Войти
/
githubmirror
/
deno
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
tests/napi/build.rs
11 строк
413 B
Bartek Iwańczuk
refactor(napi): replace external napi-sys with in-tree napi_sys crate (#32582)
09 мар 2026, 19:35
Не верифицирован
09 мар 2026, 19:35
c123358
Код
Авторство
О чём код?
// Copyright 2018-2026 the Deno authors. MIT license. fn main() { // On macOS, native modules need undefined symbols to be resolved // at runtime by the host process. if std::env::var("CARGO_CFG_TARGET_OS").as_deref() == Ok("macos") { println!("cargo:rustc-cdylib-link-arg=-Wl"); println!("cargo:rustc-cdylib-link-arg=-undefined"); println!("cargo:rustc-cdylib-link-arg=dynamic_lookup"); } }