new(llvm.org/mingw-w64): from-source LLVM-mingw cross-toolchain#13048
Open
tannevaled wants to merge 1 commit into
Open
new(llvm.org/mingw-w64): from-source LLVM-mingw cross-toolchain#13048tannevaled wants to merge 1 commit into
tannevaled wants to merge 1 commit into
Conversation
Composition recipe that wraps pantry's existing builds:
- llvm.org → clang + clang++ + lld + LLVM binutils
- mingw-w64.org → Windows runtime (headers + CRT + winpthreads),
built from source — see companion pantry#13047
The build script just generates per-target POSIX-sh driver wrappers
shimming clang with `--target=<target> --sysroot=<mingw-w64.org>`,
plus binutils-equivalent aliases (ar/ranlib/strip/nm/objdump/objcopy/
windres/dlltool/ld) for autotools and Makefile compat.
End-to-end test: cross-build hello.c for x86_64 + aarch64 Windows
targets, PE/COFF magic-byte check, optional wine runtime test.
From-source over vendored (no `warnings: vendored`) per pantry policy
and the project goal of source-buildable independence.
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
llvm.org/mingw-w64as a composition recipe: wraps pantry'sllvm.org(clang + lld + LLVM tools) withmingw-w64.org(Windows runtime — headers + CRT + winpthreads) to produce a self-contained, from-source Windows cross-compiler toolchain.--target=<target> --sysroot=<mingw-w64.org>, plus binutils-equivalent aliases (ar / ranlib / strip / nm / objdump / objcopy / windres / dlltool / ld) for autotools + Makefile compat. All real compilation happens in the two component recipes.warnings: vendored. Replaces the prior vendored approach (new(llvm.org/mingw-w64): LLVM-based mingw-w64 cross-compiler (Windows-target toolchain) #12984, which pulled mstorsjo/llvm-mingw prebuilt tarballs). Companion to new(mingw-w64.org): Windows runtime libs (headers + CRT + winpthreads) — from source #13047 (mingw-w64.orgruntime).Test plan
hello.cfor bothx86_64-w64-mingw32andaarch64-w64-mingw32targetsMZheader)Context
This supersedes #12984 — that branch pinned the vendored-tarball approach. Per the project goal of source-buildable independence ("être capable de compiler depuis les sources est un gage d'indépendance"), this PR drops the vendored path entirely and composes pantry's own builds.
Closes #12984 (will close once this is reviewed-OK).
🤖 Generated with Claude Code