Files
pnpm/.github
Zoltan Kochan febe5f36da ci: build the musl NAPI addon with dynamic CRT linking (#12837)
The 'Release pnpm (Rust)' workflow failed on the musl legs with
"cannot produce cdylib for pacquet-napi ... as the target
x86_64-unknown-linux-musl does not support these crate types". musl
targets link the CRT statically by default (crt-static), which is
incompatible with the cdylib crate type used by the .node addon.

Pass '-C target-feature=-crt-static' when building the addon, but only
for musl targets, so it links dynamically against musl libc at load
time - matching how napi-rs builds its musl prebuilds. The CLI binary
is built in a separate step and keeps crt-static, so it stays fully
static for portability across musl distros.
2026-07-07 12:38:01 +02:00
..
2025-08-09 02:39:13 +02:00
2025-06-17 12:51:44 +02:00