Skip to content

Commit d7f87a3

Browse files
committed
Try to set minimum MacOS version to 10.13
1 parent 2ff31f1 commit d7f87a3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

CMakeLists.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,8 @@ nanobind_add_module(
2525
)
2626
target_include_directories(_core PRIVATE include)
2727

28-
# Add -fno-aligned-allocation flag for macOS Intel architecture
29-
# If this is omitted, builds on MacOS intel will fail
3028
if(APPLE AND CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64")
31-
target_compile_options(_core PRIVATE -fno-aligned-allocation)
29+
target_compile_options(_core PRIVATE -mmacosx-version-min=10.13)
3230
endif()
3331

3432
nanobind_add_stub(

0 commit comments

Comments
 (0)