Skip to content

Commit 3b0d4aa

Browse files
committed
Use clang if on MacOS
1 parent 06acfac commit 3b0d4aa

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.github/scripts/python_wheels/cibw_before_all.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ if [ "$(uname)" == "Linux" ]; then
2424
./b2 install --prefix=/opt/boost --with=all
2525
cd ..
2626
elif [ "$(uname)" == "Darwin" ]; then
27-
brew install wget cmake boost
27+
brew install wget cmake ninja boost
28+
sudo xcode-select -switch /Applications/Xcode.app
2829
fi
2930

3031
$(which $PYTHON) -m pip install -r $PROJECT_DIR/python/dev_requirements.txt

.github/workflows/build-cibw.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,12 @@ jobs:
109109
echo "DEVELOP=1" >> $GITHUB_ENV
110110
echo "TIMESTAMP=${{ needs.get_system_time.outputs.timestamp }}" >> $GITHUB_ENV
111111
112+
- name: Set compiler to clang if on MacOS
113+
if: startsWith(matrix.os, 'macos')
114+
run: |
115+
echo "CC=clang" >> $GITHUB_ENV
116+
echo "CXX=clang++" >> $GITHUB_ENV
117+
112118
- name: Install Dependencies
113119
run: |
114120
python3 -m pip install -r python/dev_requirements.txt

0 commit comments

Comments
 (0)