Skip to content

Commit bd73f77

Browse files
committed
Did not work, trying something else
1 parent 3b0d4aa commit bd73f77

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

.github/scripts/python_wheels/cibw_before_all.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@ if [ "$(uname)" == "Linux" ]; then
2424
./b2 install --prefix=/opt/boost --with=all
2525
cd ..
2626
elif [ "$(uname)" == "Darwin" ]; then
27-
brew install wget cmake ninja boost
28-
sudo xcode-select -switch /Applications/Xcode.app
27+
brew install wget cmake boost
28+
29+
export CC=clang
30+
export CXX=clang++
2931
fi
3032

3133
$(which $PYTHON) -m pip install -r $PROJECT_DIR/python/dev_requirements.txt
@@ -52,6 +54,7 @@ cmake $PROJECT_DIR \
5254
-DCMAKE_INSTALL_PREFIX=$PROJECT_DIR/gtsam_install
5355

5456
cd $PROJECT_DIR/build/python
57+
echo | gcc -E -dM - | grep __GNUC__
5558

5659
# Install the Python wrapper module and generate Python stubs
5760
if [ "$(uname)" == "Linux" ]; then

.github/workflows/build-cibw.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,6 @@ 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-
118112
- name: Install Dependencies
119113
run: |
120114
python3 -m pip install -r python/dev_requirements.txt

0 commit comments

Comments
 (0)