Commit 84e289e
committed
feat(jq): add windows/x86-64 cross-compile pilot
Phase-0 pilot recipe for the Windows-port architecture sketched at
pkgxdev/brewkit#346. Cross-compiles jq from a Linux runner (via
#12984's llvm.org/mingw-w64 toolchain), produces
bin/jq.exe, runs it through wine in the test step (via
#12986's headless winehq.org recipe).
Build side:
- Detect platform via {{hw.platform}}; on windows/* set --host
triple + CC=<triple>-clang
- --disable-onigjq because oniguruma doesn't have a Windows bottle
yet (gap tracked in #346); regex jq features disabled on Windows
- --disable-shared so the .exe is self-contained (no .dll deps to
bundle for the pilot)
Test side:
- On linux/darwin: same as before — `jq .devs[1].github` returns
"jhheider" from the existing test.json fixture
- On windows/*: run jq.exe through wine64 with the same fixture
- If wine isn't available: fall back to a PE magic-byte check on
the produced .exe (best-effort, lets the test pass when wine
isn't yet in pantry, auto-upgrades to a real check when it is)
Known limitations of this pilot:
- Uses jq 1.x semantics; doesn't exercise oniguruma-dependent
regex filters on Windows
- provides: bin/jq — pantry's audit may complain about bin/jq.exe
on Windows. If so we need a brewkit hook to accept platform-
appropriate suffixes (e.g. bin/jq → bin/jq.exe on windows/*)
- Build dep on llvm.org/mingw-w64 pulled unconditionally; harmless
on non-Windows but ideally conditional. Worth fixing in brewkit
once #346 settles on conditional-deps semantics.
Refs: pkgxdev/brewkit#346, #12984, #12986.1 parent e2ad4c1 commit 84e289e
1 file changed
Lines changed: 59 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
11 | 15 | | |
12 | 16 | | |
13 | 17 | | |
14 | 18 | | |
| 19 | + | |
15 | 20 | | |
16 | 21 | | |
17 | 22 | | |
18 | 23 | | |
19 | 24 | | |
20 | 25 | | |
21 | 26 | | |
22 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
23 | 51 | | |
24 | 52 | | |
25 | 53 | | |
26 | 54 | | |
27 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
28 | 82 | | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
29 | 86 | | |
30 | 87 | | |
0 commit comments