You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
configure: add check_inline_asm_flags()
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
committed by
Michael Niedermayer
parent
8a90e0fd21
commit
b59d06d5f4
19
configure
vendored
19
configure
vendored
@@ -918,6 +918,25 @@ void foo(void){ __asm__ volatile($code); }
|
|||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
|
check_inline_asm_flags(){
|
||||||
|
log check_inline_asm_flags "$@"
|
||||||
|
name="$1"
|
||||||
|
code="$2"
|
||||||
|
flags=''
|
||||||
|
shift 2
|
||||||
|
while [ "$1" != "" ]; do
|
||||||
|
append flags $1
|
||||||
|
shift
|
||||||
|
done;
|
||||||
|
disable $name
|
||||||
|
cat > $TMPC <<EOF
|
||||||
|
void foo(void){ __asm__ volatile($code); }
|
||||||
|
EOF
|
||||||
|
log_file $TMPC
|
||||||
|
check_cmd $cc $CPPFLAGS $CFLAGS $flags "$@" $CC_C $(cc_o $TMPO) $TMPC &&
|
||||||
|
enable $name && add_cflags $flags && add_asflags $flags && add_ldflags $flags
|
||||||
|
}
|
||||||
|
|
||||||
check_insn(){
|
check_insn(){
|
||||||
log check_insn "$@"
|
log check_insn "$@"
|
||||||
check_inline_asm ${1}_inline "\"$2\""
|
check_inline_asm ${1}_inline "\"$2\""
|
||||||
|
Reference in New Issue
Block a user