Commit aed0f01
fix(llvm.org/mingw-w64): install the full toolchain tree (fixes darwin)
The install cherry-picked bin/lib/include/share, which drops llvm-mingw's
per-target sysroots — generic-w64-mingw32/include holds the mingw headers
(stdio.h et al.) and each <triple>-w64-mingw32/lib holds the import libs.
Without them the cross compiler can't find its own headers, exactly the
darwin failure @jhheider captured: `'stdio.h' file not found`.
It was masked on Linux because the brewkit sandbox (debian:buster, glibc
2.28) can't load llvm-mingw's clang at all, so the compile test hit the
`clang --version` guard and skipped — green by no-op. darwin runs the
clang for real, so it surfaced there.
Now extract into a staging dir and copy the whole tree. Verified on
darwin/arm64: both x86_64 and aarch64 cross-compiles of a <stdio.h>
program produce valid PE/COFF (MZ) binaries.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 3e26999 commit aed0f01
1 file changed
Lines changed: 19 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
66 | 65 | | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
80 | 85 | | |
81 | 86 | | |
82 | 87 | | |
| |||
0 commit comments