/
githubmirror
/
next.js
Обзор
Документация
Войти
/
githubmirror
/
next.js
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
canary
rspack/scripts/rust-lld
19 строк
549 B
Cong-Cong Pan
chore: release @next/rspack-core 1.0.3 (#94116)
26 май 2026, 17:32
Не верифицирован
26 май 2026, 17:32
04aa19d
Код
Авторство
О чём код?
#!/usr/bin/env bash set -euo pipefail filtered_args=() for arg in "$@"; do # napi-build emits `-Wl -undefined dynamic_lookup` on macOS. When rustc calls # rust-lld directly, `-Wl` is not a real linker flag; the following Darwin # args are already valid for rust-lld and must be preserved. if [[ "$arg" == "-Wl" ]]; then continue fi filtered_args+=("$arg") done sysroot="$(rustc --print sysroot)" host="$(rustc -vV | sed -n 's/^host: //p')" rust_lld="$sysroot/lib/rustlib/$host/bin/rust-lld" exec "$rust_lld" "${filtered_args[@]}"