Skip to content

Commit

Permalink
Add workaround for Apple clang 16 (Xcode 16)
Browse files Browse the repository at this point in the history
Disable the constraint elimination step as it's buggy in clang 16.
  • Loading branch information
ychin committed Oct 23, 2024
1 parent 45034d2 commit 3f38464
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,9 @@ jobs:
if clang --version | grep -qs 'Apple clang version \(1[3-9]\|[2-9]\)\.'; then
sed -i.bak -f ci/config.mk.clang-12.sed ${SRCDIR}/auto/config.mk
fi
if clang --version | grep -qs 'Apple clang version 16\.'; then
sed -i.bak -f ci/config.mk.apple-clang-16.sed ${SRCDIR}/auto/config.mk
fi
- name: Build
env:
Expand Down
1 change: 1 addition & 0 deletions ci/config.mk.apple-clang-16.sed
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/^CFLAGS[[:blank:]]*=/s/$/ -mllvm -enable-constraint-elimination=0/

0 comments on commit 3f38464

Please sign in to comment.