We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6aede52 commit 2ff31f1Copy full SHA for 2ff31f1
1 file changed
CMakeLists.txt
@@ -25,6 +25,12 @@ nanobind_add_module(
25
)
26
target_include_directories(_core PRIVATE include)
27
28
+# Add -fno-aligned-allocation flag for macOS Intel architecture
29
+# If this is omitted, builds on MacOS intel will fail
30
+if(APPLE AND CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64")
31
+ target_compile_options(_core PRIVATE -fno-aligned-allocation)
32
+endif()
33
+
34
nanobind_add_stub(
35
mapbox_earcut_stubs
36
MODULE _core
0 commit comments