Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
More improvements to the robustess of the Mac build
Browse files Browse the repository at this point in the history
  • Loading branch information
MintoDA1 authored and MintoDA1 committed Aug 21, 2023
1 parent 8bd2f9b commit f960c30
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions buildscripts/build_swiftest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,8 @@ SKBUILD_CONFIGURE_OPTIONS="-DBUILD_SHARED_LIBS=OFF"

if [ $OS = "Intel" ]; then
FCFLAGS="${CFLAGS} -standard-semantics"
FFLAGS=${CFLAGS}
SKBUILD_CONFIGURE_OPTIONS="${SKBUILD_CONFIGURE_OPTIONS} -DMACHINE_CODE_VALUE=\"SSE2\""
else
FCFLAGS="${CFLAGS}"
FFLAGS="${CFLAGS}"
SKBUILD_CONFIGURE_OPTIONS="${SKBUILD_CONFIGURE_OPTIONS} -DMACHINE_CODE_VALUE=\"generic\""
fi

Expand Down Expand Up @@ -63,4 +60,9 @@ fi
printf "*********************************************************\n"

python3 -m pip install build pip
python3 -m build
python3 -m build --sdist
if [ $OS = "MacOSX" ]; then
cibuildwheel --platform macos
elif [ $OS = "Linux" ]; then
cibuildwheel --platform linux
fi
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ before-all = [
]

[tool.cibuildwheel.macos]
environment = {PATH="${TMPDIR}/bin:${PATH}", LD_LIBRARY_PATH="${TMPDIR}/lib:${LD_LIBRARY_PATH}",CPPFLAGS="${CPPFLAGS} -isystem ${TMPDIR}/include",LDFLAGS="${LDFLAGS} -L${TMPDIR}/lib",CPATH="${CPATH} ${TMPDIR}/include}", SKBUILD_CONFIGURE_OPTIONS="-DBUILD_SHARED_LIBS=OFF",FFLAGS="${FFLAGS} -fPIC"}
skip = "cp38-*"
before-all = [
"buildscripts/build_dependencies.sh -d ${TMPDIR} -p ${TMPDIR} -m ${MACOSX_DEPLOYMENT_TARGET}"
]
Expand Down

0 comments on commit f960c30

Please sign in to comment.