From 7733fe1f95dec8903d6b617af046e308e6c0c25a Mon Sep 17 00:00:00 2001 From: Simon Paredes Date: Thu, 25 Jul 2024 16:21:04 -0400 Subject: [PATCH] Use the new WHISPER_METAL_EMBED_LIBRARY flag to embed the metal lib (#93) --- build_cpp.sh | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/build_cpp.sh b/build_cpp.sh index da7cf0f..68525b7 100644 --- a/build_cpp.sh +++ b/build_cpp.sh @@ -36,7 +36,7 @@ build_mac_metal() { cmake -DCMAKE_OSX_ARCHITECTURES="x86_64;arm64" -DWHISPER_METAL=ON \ -DWHISPER_NO_AVX=ON -DWHISPER_NO_AVX2=ON -DWHISPER_NO_FMA=ON -DWHISPER_NO_F16C=ON \ - -DWHISPER_BUILD_TESTS=OFF -DWHISPER_BUILD_EXAMPLES=OFF ../ + -DWHISPER_BUILD_TESTS=OFF -DWHISPER_BUILD_EXAMPLES=OFF -DWHISPER_METAL_EMBED_LIBRARY=ON ../ make echo "Build for Mac (Metal) complete!" @@ -45,10 +45,6 @@ build_mac_metal() { target_path="$unity_project/Packages/com.whisper.unity/Plugins/MacOS/libwhisper_metal.dylib" cp "$artifact_path" "$target_path" - artifact_path="$build_path/bin/ggml-metal.metal" - target_path="$unity_project/Packages/com.whisper.unity/Plugins/MacOS/ggml-metal.metal" - cp "$artifact_path" "$target_path" - echo "Build files copied to $target_path" }