Skip to content

Commit

Permalink
Disable inline asm on msys to avoid Error operand type mismatch for `…
Browse files Browse the repository at this point in the history
…shr' (#34)

fix: disable inline asm on msys to avoid Error operand type mismatch for `shr'
  • Loading branch information
wangyoucao577 committed Aug 13, 2023
1 parent cf16319 commit 82f6777
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion buildtools/scripts/build-ffmpeg.sh
Expand Up @@ -9,7 +9,8 @@ if [[ "$OSTYPE" == "darwin"* ]]; then
}
elif [[ "$OSTYPE" == msys* ]]; then
# build shared on windows
FFMPEG_STATIC_SHARED_PARAMS="--disable-static --enable-shared"
# workaround: disable inline asm to avoid Error: operand type mismatch for `shr'
FFMPEG_STATIC_SHARED_PARAMS="--disable-static --enable-shared --disable-inline-asm"
MSYS_BUILD_EXTRA_LDFLAGS=(-fstack-protector) # to avoid error when link opus
elif [[ "$OSTYPE" == "linux"* ]]; then
:
Expand Down

0 comments on commit 82f6777

Please sign in to comment.