Skip to content

Commit b093cef

Browse files
committed
Update ctypes compiler defines for macos
1 parent 049b02e commit b093cef

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

graalpython/com.oracle.graal.python.cext/CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,13 @@ if(WIN32)
409409
_WIN64
410410
FFI_STATIC_BUILD
411411
)
412+
elseif(APPLE)
413+
target_compile_definitions("_ctypes" PRIVATE
414+
HAVE_DECL_RTLD_LOCAL
415+
HAVE_DECL_RTLD_GLOBAL
416+
HAVE_DYLD_SHARED_CACHE_CONTAINS_PATH
417+
HAVE_BUILTIN_AVAILABLE
418+
)
412419
else()
413420
target_compile_definitions("_ctypes" PRIVATE
414421
HAVE_DECL_RTLD_LOCAL

0 commit comments

Comments
 (0)