Skip to content

Commit

Permalink
fix cmake build
Browse files Browse the repository at this point in the history
  • Loading branch information
GiviMAD committed Dec 20, 2023
1 parent 773be21 commit dcce35e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build_debian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ set -xe
build_lib() {
TMP_DIR=src/main/resources/debian
TARGET_DIR=src/main/resources/debian-$AARCH
cmake -B build $CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=$TMP_DIR
cmake -B build "$CMAKE_ARGS" -DCMAKE_INSTALL_PREFIX=$TMP_DIR
cmake --build build --config Release
cmake --install build
mv $TMP_DIR/libwhisper.so $TARGET_DIR/libwhisper$LIB_VARIANT.so
Expand All @@ -25,7 +25,7 @@ case $AARCH in
;;
armhf|armv7l)
AARCH=armv7l
LIB_VARIANT="+crc" CMAKE_ARGS="-DCMAKE_C_FLAGS='-march=armv8-a+crc -mfpu=neon-fp-armv8 -mfp16-format=ieee -mno-unaligned-access -funsafe-math-optimizations'" build_lib
ADD_WRAPPER=true CMAKE_ARGS="-DCMAKE_C_FLAGS='-mfpu=neon -mfp16-format=ieee -mno-unaligned-access -funsafe-math-optimizations'" build_lib
LIB_VARIANT="+crc" CMAKE_ARGS="-DCMAKE_C_FLAGS='-march=armv8-a+crc -mfpu=neon-fp-armv8 -mfp16-format=ieee -mno-unaligned-access'" build_lib
ADD_WRAPPER=true CMAKE_ARGS="-DCMAKE_C_FLAGS='-mfpu=neon -mfp16-format=ieee -mno-unaligned-access'" build_lib
;;
esac

0 comments on commit dcce35e

Please sign in to comment.