Skip to content

Commit ccd09f8

Browse files
committed
Don't try to link default.metallib on embedded MacOS builds
1 parent 4185033 commit ccd09f8

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

cmake/BuildWhispercpp.cmake

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,9 @@ if(APPLE)
8787

8888
install_library_to_bundle(${whispercpp_fetch_SOURCE_DIR} libomp.dylib)
8989
install_library_to_bundle(${whispercpp_fetch_SOURCE_DIR} libvulkan.1.dylib)
90-
target_add_resource(${CMAKE_PROJECT_NAME} ${whispercpp_fetch_SOURCE_DIR}/bin/default.metallib)
90+
if(NOT $ENV{MACOS_VERSION} STREQUAL "embedded")
91+
target_add_resource(${CMAKE_PROJECT_NAME} ${whispercpp_fetch_SOURCE_DIR}/bin/default.metallib)
92+
endif()
9193
elseif(WIN32)
9294
add_compile_definitions(WHISPER_DYNAMIC_BACKENDS)
9395

0 commit comments

Comments
 (0)