build: aarch64 uses cached glibc cross gcc (static) instead of uncached musl
ci / release (push) Successful in 1m53s

This commit is contained in:
2026-11-22 18:21:36 +01:00
parent 32ec81ff6c
commit 7c44fedcab
2 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ All tooling comes from devbox (nim, git, file). Cross toolchains come from Nix (
Follows https://nim-lang.org/docs/nimc.html#crossminuscompilation: the script runs `nix shell nixpkgs#<pkg>.stdenv.cc`
and sets `--os/--cpu` plus `--<cpu>.<os>.gcc.exe/.linkerexe/.path` (and plain `--gcc.*`, since the
per-platform ones are ignored when target == host).
- linux-x86_64: `pkgsCross.musl64`, static. linux-aarch64: `pkgsCross.aarch64-multiplatform-musl`, static.
- linux-x86_64: `pkgsCross.musl64`, static. linux-aarch64: `pkgsCross.aarch64-multiplatform` (glibc, static via `glibc.static`; the musl gcc is not in cache.nixos.org so CI would compile gcc).
- windows-x86_64: `pkgsCross.mingwW64`, `-d:mingw`, static; needs `windows.mcfgthreads` on `-L` (gcc 15 threading lib).
Supported targets: linux x86_64, linux aarch64, windows x86_64. **No macOS build** (dropped; no darwin toolchain).
Quirk: nim.cfg pins the mingw `gcc.path` to /usr/bin, so the script overrides `.gcc.path`.