Skip to content

Commit

Permalink
Enable -O2 FFmpeg optimizations but disable -fno-builtin-sin and …
Browse files Browse the repository at this point in the history
…`-fno-builtin-cos` (#95)
  • Loading branch information
Blackhex authored Feb 2, 2024
1 parent 72fe2cc commit 80bcef0
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/scripts/ffmpeg/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,20 @@ if [ $RUN_CONFIG = 1 ] || [ ! -f "$FFMPEG_BUILD_PATH/Makefile" ] ; then
echo "::group::Configure FFmpeg"
rm -rf $FFMPEG_BUILD_PATH/*

CFLAGS="-Wno-incompatible-pointer-types" \
if [ $DEBUG = 1 ] ; then
ADDITIONAL_OPTIONS=" \
--enable-debug=3"
fi

CFLAGS="-Wno-incompatible-pointer-types -fno-builtin-sin -fno-builtin-cos" \
$FFMPEG_SOURCE_PATH/configure \
--prefix=$FFMPEG_PATH \
--target-path="." \
--target-samples="./samples" \
--disable-optimizations \
--arch=aarch64 \
--target-os=mingw32 \
--cross-prefix=aarch64-w64-mingw32-
--cross-prefix=aarch64-w64-mingw32- \
$ADDITIONAL_OPTIONS
echo "::endgroup::"
fi

Expand Down

0 comments on commit 80bcef0

Please sign in to comment.