Skip to content

Commit

Permalink
Use the new WHISPER_METAL_EMBED_LIBRARY flag to embed the metal lib (#93
Browse files Browse the repository at this point in the history
)
  • Loading branch information
injeniero authored Jul 25, 2024
1 parent 57772ca commit 7733fe1
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions build_cpp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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!"
Expand All @@ -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"
}

Expand Down

0 comments on commit 7733fe1

Please sign in to comment.