Commit 02bad9d
authored
Force Apple Clang for macOS wheel builds (#18340)
A recent test-infra change
(pytorch/test-infra#7848) updated
`MACOSX_DEPLOYMENT_TARGET` and sets `CC=clang` / `CXX=clang++` without
absolute paths. On GitHub Actions `macos-14-xlarge` runners, bare
`clang` can resolve to Homebrew LLVM instead of Apple Clang. Homebrew's
clang doesn't properly handle Apple SDK Objective-C framework headers,
breaking the `limits.h` include chain and causing:
```
NSObjCRuntime.h: error: use of undeclared identifier 'NSIntegerMax'
```
This pins the compiler to `/usr/bin/clang` in the macOS wheel build
environment to ensure Apple Clang is always used.1 parent 2548ee1 commit 02bad9d
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
0 commit comments