Skip to content

Commit 80bcef0

Browse files
authored
Enable -O2 FFmpeg optimizations but disable -fno-builtin-sin and -fno-builtin-cos (#95)
1 parent 72fe2cc commit 80bcef0

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/scripts/ffmpeg/build.sh

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,20 @@ if [ $RUN_CONFIG = 1 ] || [ ! -f "$FFMPEG_BUILD_PATH/Makefile" ] ; then
1212
echo "::group::Configure FFmpeg"
1313
rm -rf $FFMPEG_BUILD_PATH/*
1414

15-
CFLAGS="-Wno-incompatible-pointer-types" \
15+
if [ $DEBUG = 1 ] ; then
16+
ADDITIONAL_OPTIONS=" \
17+
--enable-debug=3"
18+
fi
19+
20+
CFLAGS="-Wno-incompatible-pointer-types -fno-builtin-sin -fno-builtin-cos" \
1621
$FFMPEG_SOURCE_PATH/configure \
1722
--prefix=$FFMPEG_PATH \
1823
--target-path="." \
1924
--target-samples="./samples" \
20-
--disable-optimizations \
2125
--arch=aarch64 \
2226
--target-os=mingw32 \
23-
--cross-prefix=aarch64-w64-mingw32-
27+
--cross-prefix=aarch64-w64-mingw32- \
28+
$ADDITIONAL_OPTIONS
2429
echo "::endgroup::"
2530
fi
2631

0 commit comments

Comments
 (0)