Skip to content

Commit cfb1969

Browse files
committed
ggml: Define _DARWIN_C_SOURCE for visionOS to fix missing u_xxx typedefs
1 parent 11043f7 commit cfb1969

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ggml/src/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,10 @@ if (CMAKE_SYSTEM_NAME MATCHES "Android")
351351
target_link_libraries(ggml-base PRIVATE dl)
352352
endif()
353353

354+
if(CMAKE_SYSTEM_NAME MATCHES "visionOS")
355+
target_compile_definitions(ggml-base PUBLIC _DARWIN_C_SOURCE)
356+
endif()
357+
354358
if (BUILD_SHARED_LIBS)
355359
foreach (target ggml-base ggml)
356360
set_target_properties(${target} PROPERTIES POSITION_INDEPENDENT_CODE ON)

0 commit comments

Comments
 (0)