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" }