Skip to content

Commit

Permalink
Diagnose Homebrew GCC
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeSWang committed May 21, 2024
1 parent 6e5949f commit 45b3e5c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,9 @@ jobs:
config-file: pyproject.toml
env:
# Default to GCC compiler and OpenMP on macOS.
# HACK: Hardcode g++-13 compiler for GitHub macOS runners.
CIBW_ENVIRONMENT_MACOS: >-
PY_CXX=$(find $(brew --prefix gcc)/bin -type f -name 'g++*')
PY_CXX=$(brew --prefix)/bin/g++-13
PY_CXXFLAGS=-I$(brew --prefix)/include
PY_LDFLAGS=-L$(brew --prefix)/lib
# # Switch to LLVM compiler and OpenMP on macOS.
Expand All @@ -142,6 +143,9 @@ jobs:
# PY_OMP=1
# PY_CXXFLAGS_OMP="-I$(brew --prefix libomp)/include -fopenmp"
# PY_LDFLAGS_OMP="-L$(brew --prefix libomp)/lib -lomp"
CIBW_REPAIR_WHEEL_COMMAND_MACOS: >
delocate-listdeps {wheel} &&
delocate-wheel --require-archs {delocate_archs} -w {dest_dir} -v {wheel}
- name: Verify built distribution
run: python -m twine check --strict dist/*
Expand Down

0 comments on commit 45b3e5c

Please sign in to comment.