Commit 1e292ef
authored
fix(ci): force clang for Linux x86_64 native builds (#1059)
Verified locally: gcc 14.2.0 (Debian Trixie) builds a binary whose
tree-sitter-hcl extractor silently drops the 4 HCL fixture files in
tests/benchmarks/resolution/fixtures/hcl/. Clang 14 (Debian Bookworm)
builds a binary that parses them correctly. Same Rust source, same
Cargo.lock — only the C compiler differs (cc-rs uses CC for the
bundled parser.c).
The drop triggers an engine-parity WASM backfill on every full-build
call (#1054), and the v3.10.0 pre-publish gate flagged the resulting
~1.7s overhead per call as a regression vs the v3.9.6 published binary
(which evidently was built before this gcc/parser-c interaction
manifested).
Forces `CC=clang`/`CXX=clang++` in three places that build the host
x86_64-unknown-linux-gnu artifact:
- publish.yml `build-native` matrix entry for the gate's binary
- publish.yml `preflight` job (so npm test parity matches published)
- build-native.yml's matching matrix entry (host build for PR checks)
- ci.yml `native-host-build` ubuntu-latest leg (so PR test runs match)
Cross-compile targets (aarch64-gnu, x86_64-musl) are unaffected — they
already pin their own toolchains. macOS and Windows are unaffected.
Refs #10541 parent bbed2c1 commit 1e292ef
3 files changed
Lines changed: 42 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
75 | 86 | | |
76 | 87 | | |
77 | 88 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
64 | 74 | | |
65 | 75 | | |
66 | 76 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
47 | 56 | | |
48 | 57 | | |
49 | 58 | | |
| |||
178 | 187 | | |
179 | 188 | | |
180 | 189 | | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
181 | 202 | | |
182 | 203 | | |
183 | 204 | | |
| |||
0 commit comments