mirror of
				https://github.com/ggml-org/llama.cpp.git
				synced 2025-11-04 09:32:00 +00:00 
			
		
		
		
	Fix visionOS build and add CI (#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:
		@@ -325,6 +325,10 @@ if (CMAKE_SYSTEM_NAME MATCHES "Android")
 | 
			
		||||
    target_link_libraries(ggml-base PRIVATE dl)
 | 
			
		||||
endif()
 | 
			
		||||
 | 
			
		||||
if(CMAKE_SYSTEM_NAME MATCHES "visionOS")
 | 
			
		||||
    target_compile_definitions(ggml-base PUBLIC _DARWIN_C_SOURCE)
 | 
			
		||||
endif()
 | 
			
		||||
 | 
			
		||||
if (BUILD_SHARED_LIBS)
 | 
			
		||||
    foreach (target ggml-base ggml)
 | 
			
		||||
        set_target_properties(${target} PROPERTIES POSITION_INDEPENDENT_CODE ON)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user