Skip to content

Commit 19d034f

Browse files
16bit-ykikoclaude
andcommitted
fix(ci): add upstream clang to test-run env for macOS
On macOS runners without upstream clang in PATH, clice falls back to /usr/bin/clang++ (Apple's) which emits vendor-specific flags that upstream LLVM 21 cannot parse, causing 28 unit test failures on macos-15-intel. Add clang/clangxx to the test feature for macOS platforms so test-run gets upstream clang. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent f029ebd commit 19d034f

File tree

2 files changed

+112
-0
lines changed

2 files changed

+112
-0
lines changed

pixi.lock

Lines changed: 100 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pixi.toml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,18 @@ scripts = ["scripts/activate_cross_linux.sh"]
8181
[feature.test.dependencies]
8282
python = ">=3.13"
8383

84+
# clice discovers toolchain flags by running `clang++ -###`. On macOS, the
85+
# system Apple clang emits vendor-specific flags that upstream LLVM cannot
86+
# parse, causing unit test failures. Providing upstream clang in PATH
87+
# prevents fallback to /usr/bin/clang++.
88+
[feature.test.target.osx-64.dependencies]
89+
clang = "==20.1.8"
90+
clangxx = "==20.1.8"
91+
92+
[feature.test.target.osx-arm64.dependencies]
93+
clang = "==20.1.8"
94+
clangxx = "==20.1.8"
95+
8496
[feature.test.pypi-dependencies]
8597
pytest = "*"
8698
pytest-asyncio = ">=1.1.0"

0 commit comments

Comments
 (0)