Skip to content

Commit 09cda20

Browse files
committed
Try to set MACOS_DEPLOYMENT_TARGET
1 parent d7f87a3 commit 09cda20

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ jobs:
3232
# and to split the remaining architectures between the x86_64 and
3333
# ARM runners
3434
CIBW_ARCHS_LINUX: ${{ runner.arch == 'X64' && 'auto ppc64le s390x' || 'auto' }}
35+
# Need this to be >= 10.13 to support C++17 aligned allocations
36+
MACOSX_DEPLOYMENT_TARGET: 10.13
3537

3638
- name: Show files
3739
run: ls -lh wheelhouse

CMakeLists.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,6 @@ nanobind_add_module(
2525
)
2626
target_include_directories(_core PRIVATE include)
2727

28-
if(APPLE AND CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64")
29-
target_compile_options(_core PRIVATE -mmacosx-version-min=10.13)
30-
endif()
31-
3228
nanobind_add_stub(
3329
mapbox_earcut_stubs
3430
MODULE _core

0 commit comments

Comments
 (0)