Skip to content

Commit 3e655b7

Browse files
andrewkaufmanjohnhaddon
authored andcommitted
CI : Remove conflicting headers installed by Homebrew
1 parent 4488767 commit 3e655b7

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/main.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,14 @@ jobs:
104104
- name: Install toolchain (MacOS)
105105
# Prefer `pip install` because it is faster
106106
# than `brew install`.
107-
run: sudo pip3 install scons==4.0.1
107+
run: |
108+
sudo pip3 install scons==4.0.1
109+
# Brew installs all manner of headers into `/usr/local/include`, including
110+
# OpenEXR and Imath versions that conflict with our own. We can't stop Clang
111+
# finding them because Clang is hardcoded to look in `/usr/local/include`
112+
# _before_ anything we specify with `-isystem`, despite documentation to the
113+
# contrary. So we nuke the headers.
114+
rm -rf /usr/local/include/*
108115
if: runner.os == 'macOS'
109116

110117
- name: Install toolchain (Linux)

0 commit comments

Comments
 (0)