We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11043f7 commit cfb1969Copy full SHA for cfb1969
ggml/src/CMakeLists.txt
@@ -351,6 +351,10 @@ if (CMAKE_SYSTEM_NAME MATCHES "Android")
351
target_link_libraries(ggml-base PRIVATE dl)
352
endif()
353
354
+if(CMAKE_SYSTEM_NAME MATCHES "visionOS")
355
+ target_compile_definitions(ggml-base PUBLIC _DARWIN_C_SOURCE)
356
+endif()
357
+
358
if (BUILD_SHARED_LIBS)
359
foreach (target ggml-base ggml)
360
set_target_properties(${target} PROPERTIES POSITION_INDEPENDENT_CODE ON)
0 commit comments