mirror of
https://github.com/ggerganov/whisper.cpp.git
synced 2025-04-08 04:08:13 +02:00
Fix visionOS build and add CI (llama/12415)
* ci: add visionOS build workflow Add a new GitHub Actions workflow for building on visionOS with CMake and Xcode. * ggml: Define _DARWIN_C_SOURCE for visionOS to fix missing u_xxx typedefs * ci: remove define hacks for u_xxx system types --------- Co-authored-by: Giovanni Petrantoni <7008900+sinkingsugar@users.noreply.github.com>
This commit is contained in:
parent
102af79f63
commit
c722ff84d3
@ -325,6 +325,10 @@ if (CMAKE_SYSTEM_NAME MATCHES "Android")
|
|||||||
target_link_libraries(ggml-base PRIVATE dl)
|
target_link_libraries(ggml-base PRIVATE dl)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(CMAKE_SYSTEM_NAME MATCHES "visionOS")
|
||||||
|
target_compile_definitions(ggml-base PUBLIC _DARWIN_C_SOURCE)
|
||||||
|
endif()
|
||||||
|
|
||||||
if (BUILD_SHARED_LIBS)
|
if (BUILD_SHARED_LIBS)
|
||||||
foreach (target ggml-base ggml)
|
foreach (target ggml-base ggml)
|
||||||
set_target_properties(${target} PROPERTIES POSITION_INDEPENDENT_CODE ON)
|
set_target_properties(${target} PROPERTIES POSITION_INDEPENDENT_CODE ON)
|
||||||
|
Loading…
Reference in New Issue
Block a user