Skip to content

Commit

Permalink
Explicitly set release
Browse files Browse the repository at this point in the history
  • Loading branch information
Macoron committed Jul 25, 2024
1 parent 7733fe1 commit 7993c14
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions build_cpp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ build_mac() {
clean_build
echo "Starting building for Mac..."

cmake -DCMAKE_OSX_ARCHITECTURES="x86_64;arm64" -DWHISPER_METAL=OFF \
cmake -DCMAKE_OSX_ARCHITECTURES="x86_64;arm64" -DWHISPER_METAL=OFF -DCMAKE_BUILD_TYPE=Release \
-DWHISPER_NO_AVX=ON -DWHISPER_NO_AVX2=ON -DWHISPER_NO_FMA=ON -DWHISPER_NO_F16C=ON \
-DWHISPER_BUILD_TESTS=OFF -DWHISPER_BUILD_EXAMPLES=OFF ../
make
Expand All @@ -34,7 +34,7 @@ build_mac_metal() {
clean_build
echo "Starting building for Mac (Metal)..."

cmake -DCMAKE_OSX_ARCHITECTURES="x86_64;arm64" -DWHISPER_METAL=ON \
cmake -DCMAKE_OSX_ARCHITECTURES="x86_64;arm64" -DWHISPER_METAL=ON -DCMAKE_BUILD_TYPE=Release \
-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_METAL_EMBED_LIBRARY=ON ../
make
Expand All @@ -52,7 +52,7 @@ build_ios() {
clean_build
echo "Starting building for ios..."

cmake -DBUILD_SHARED_LIBS=OFF -DCMAKE_SYSTEM_NAME=iOS \
cmake -DBUILD_SHARED_LIBS=OFF -DCMAKE_SYSTEM_NAME=iOS -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_OSX_ARCHITECTURES="x86_64;arm64" -DWHISPER_METAL=OFF \
-DCMAKE_SYSTEM_PROCESSOR=arm64 -DCMAKE_IOS_INSTALL_COMBINED=YES \
-DWHISPER_BUILD_TESTS=OFF -DWHISPER_BUILD_EXAMPLES=OFF ../
Expand All @@ -72,7 +72,7 @@ build_android() {
echo "Starting building for Android..."

cmake -DCMAKE_TOOLCHAIN_FILE="$android_sdk_path" -DANDROID_ABI=arm64-v8a -DBUILD_SHARED_LIBS=OFF \
-DWHISPER_BUILD_TESTS=OFF -DWHISPER_BUILD_EXAMPLES=OFF ../
-DWHISPER_BUILD_TESTS=OFF -DWHISPER_BUILD_EXAMPLES=OFF -DCMAKE_BUILD_TYPE=Release ../
make

echo "Build for Android complete!"
Expand Down

0 comments on commit 7993c14

Please sign in to comment.