Skip to content

Commit

Permalink
Build with macos deployment target 10.9
Browse files Browse the repository at this point in the history
  • Loading branch information
laggykiller committed Feb 28, 2024
1 parent 485e9e5 commit 075bccb
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 15 deletions.
15 changes: 3 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,24 +56,15 @@ jobs:
- os: macos-12
cibw_archs: x86_64
cibw_build: "*"
cibw_environment: >
APNGASM_COMPILE_TARGET=x86_64
_PYTHON_HOST_PLATFORM=macosx-10.15-x86_64
MACOSX_DEPLOYMENT_TARGET=10.15
cibw_environment: APNGASM_COMPILE_TARGET=x86_64
- os: macos-14
cibw_archs: arm64
cibw_build: "*"
cibw_environment: >
APNGASM_COMPILE_TARGET=armv8
_PYTHON_HOST_PLATFORM=macosx-11.0-arm64
MACOSX_DEPLOYMENT_TARGET=11.0
cibw_environment: APNGASM_COMPILE_TARGET=armv8
- os: macos-14
cibw_archs: universal2
cibw_build: "*"
cibw_environment: >
APNGASM_COMPILE_TARGET=universal2
_PYTHON_HOST_PLATFORM=macosx-10.15-universal2
MACOSX_DEPLOYMENT_TARGET=10.15
cibw_environment: APNGASM_COMPILE_TARGET=universal2
- os: ubuntu-20.04
cibw_archs: x86_64
cibw_build: "*"
Expand Down
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ elseif (APPLE)
if(${APNGASM_COMPILE_TARGET} STREQUAL "armv8")
set(CMAKE_OSX_DEPLOYMENT_TARGET "11.0")
else()
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.15")
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.9")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x -stdlib=libc++")
endif()
endif()

Expand Down
2 changes: 1 addition & 1 deletion scripts/get_deps.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def install_deps(arch: str):
if arch == "armv8":
settings.append("os.version=11.0")
else:
settings.append("os.version=10.15")
settings.append("os.version=10.9")
settings.append("compiler=apple-clang")
settings.append("compiler.libcxx=libc++")
elif platform.system() == "Linux":
Expand Down

0 comments on commit 075bccb

Please sign in to comment.