Skip to content

Commit

Permalink
Try compiling C++ libs only once
Browse files Browse the repository at this point in the history
  • Loading branch information
makaimann committed Feb 21, 2025
1 parent d25516e commit 68434e9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/cibuildwheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,12 @@ jobs:
java-1.8.0-openjdk-devel \
glibc-static \
libstdc++-static
bash {project}/ci-scripts/cibw-build-before.sh
CIBW_BEFORE_ALL_MACOS: |
brew update
brew install gperf ninja
brew install SRI-CSL/sri-csl/libpoly
bash {project}/ci-scripts/cibw-build-before.sh
CIBW_BEFORE_BUILD: >
python3 -m pip install \
Cython \
Expand All @@ -81,7 +83,6 @@ jobs:
setuptools \
toml \
wheel
bash {project}/ci-scripts/cibw-build-before.sh
CIBW_ENVIRONMENT_MACOS: >
DYLD_LIBRARY_PATH="$(pwd)/install/lib:$DYLD_LIBRARY_PATH"
MACOSX_DEPLOYMENT_TARGET=${{ matrix.macos-target }}
Expand Down
17 changes: 11 additions & 6 deletions ci-scripts/cibw-build-before.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,23 @@

set -e

# Find the Python root directory for the current Python version
# This is important for the manylinux infrastructure, which is in
# a nonstandard location that CMake has trouble finding
PYTHON_EXECUTABLE=$(which python3)
echo "Using Python_EXECUTABLE: ${PYTHON_EXECUTABLE}"
python3 -m venv ./build-cpp-env
source ./build-cpp-env/bin/activate
python3 -m pip install \
Cython \
meson \
pyparsing \
pytest \
setuptools \
toml \
wheel

./contrib/setup-bitwuzla.sh
# the version of ld.gold is too old in manylinux_2_28, remove it so cvc5 falls back on bfd
rm -f /usr/bin/ld.gold
./contrib/setup-cvc5.sh
./contrib/setup-z3.sh

./configure.sh --bitwuzla --cvc5 --z3 --python --python-executable=${PYTHON_EXECUTABLE}
./configure.sh --bitwuzla --cvc5 --z3 --python
cd build
make -j

0 comments on commit 68434e9

Please sign in to comment.