Windows ARM64 as a cross-compile target
I maintainer di solito rispondono entro 1 giorno
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Ferma
- Stack tecnologico
- github-actions, typescript, zig
- Ambito
- build-system, devops
Direzione di ricerca
A linked pull request, #4859, already implements this work. To understand the change, review its updates to targets.ts, target.cpp, CMakeLists.txt, targets.mjs, the Windows ARM64 runtime pack, tests, and platforms.mdx. The issue also identifies release-build.yml and release.yml as unresolved release integration points; check the pull request discussion for their status before taking any work.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
scriptc builds Windows executables for x64 only. I'd like to add aarch64-windows-gnu as a cross-compile target, so ARM64 Windows executables can be built from any supported host, the way Android and iOS work today.
Scope
- Building for ARM64 Windows from macOS, Linux or x64 Windows.
- It doesn't make scriptc itself run on ARM64 Windows (no
win32-arm64CLI, helper or@tsc-tspackage). That's a separate, bigger change. - No Node islands on this target.
ni_ctx_swapinscr_node_island.cis x64 assembly, so the pack leaves that file out, and@scriptc/nodefails the build with SC3002 instead of at link time.
Changes (#4859)
- The target in
targets.ts. The LLVM helper accepts the triple and emits COFF for AArch64 (target.cpp,CMakeLists.txt,targets.mjs), so the helpers need a rebuild. - A
@scriptc/runtime-win32-arm64-msvcpack, built with zig like the x64 Windows pack. - The early SC3002 error for island programs.
- Tests and
platforms.mdx.
Testing
I ran a lane on my fork (https://github.com/hum-n/scriptc/actions/runs/47353756780): every 4th corpus program, minus @requires-libnode ones, was cross-compiled on Linux for both aarch64-windows-gnu and x86_64-windows-gnu, and both builds ran side by side on windows-11-arm, with the x64 build (under emulation) as the reference. Of 1988 programs, 1731 gave the same stdout, stderr and exit code on both (23 of those differed only in architecture names, pids, temp folder names or the default NaN's sign bit), 256 don't build for Windows on either architecture, and 1 built for arm64 but not x64.
Questions
release-build.ymlandrelease.ymldon't build or publish the new pack yet. Where do you want it built? It cross-builds on Linux with zig, same as the Android pack.- Want the lane as an optional
workflow_dispatchjob? It takes about 30 min across 8 shards.
- Lingua principale
- TypeScript
- Stelle
- 6.7k
- Fork
- 229
- Merge medio
- 14h 29m
- PR unite (30g)
- 787
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di vercel-labs/scriptc
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 58/100
vercel-labs/scriptc#4865 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 58/100
vercel-labs/scriptc#4864 ·
I maintainer di solito rispondono entro 1 giorno
-
post-merge-bisect-unresolved
Difficoltà 3/5 1-2 giorni Idoneità per principianti 43/100
vercel-labs/scriptc#4791 ·
I maintainer di solito rispondono entro 1 giorno
-
post-merge-bisect-unconfirmed
Difficoltà 5/5 Più di una settimana Idoneità per principianti 12/100
vercel-labs/scriptc#4755 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
vercel-labs/scriptc#4634 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di vercel-labs/scriptc
Issue simili
-
bug data-types
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
ClickHouse/clickhouse-js#1293 ·
I maintainer di solito rispondono entro 1 giorno
-
area: middleware enhancement good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
agent/quality testing
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 95/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 92/100
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
juspay/agent-distro#203 ·
I maintainer di solito rispondono entro 1 giorno