mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-18 05:11:09 +00:00
configure: move cross_compile checks after the toolchain section
This commit is contained in:
parent
3e1b5cbc9a
commit
faab8f9fcb
14
configure
vendored
14
configure
vendored
@ -2494,13 +2494,6 @@ disabled logging && logfile=/dev/null
|
|||||||
echo "# $0 $LIBAV_CONFIGURATION" > $logfile
|
echo "# $0 $LIBAV_CONFIGURATION" > $logfile
|
||||||
set >> $logfile
|
set >> $logfile
|
||||||
|
|
||||||
test -n "$cross_prefix" && enable cross_compile
|
|
||||||
|
|
||||||
if enabled cross_compile; then
|
|
||||||
test -n "$arch" && test -n "$target_os" ||
|
|
||||||
die "Must specify target arch and OS when cross-compiling"
|
|
||||||
fi
|
|
||||||
|
|
||||||
case "$toolchain" in
|
case "$toolchain" in
|
||||||
clang-asan)
|
clang-asan)
|
||||||
cc_default="clang"
|
cc_default="clang"
|
||||||
@ -2585,6 +2578,13 @@ case "$toolchain" in
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
test -n "$cross_prefix" && enable cross_compile
|
||||||
|
|
||||||
|
if enabled cross_compile; then
|
||||||
|
test -n "$arch" && test -n "$target_os" ||
|
||||||
|
die "Must specify target arch and OS when cross-compiling"
|
||||||
|
fi
|
||||||
|
|
||||||
ar_default="${cross_prefix}${ar_default}"
|
ar_default="${cross_prefix}${ar_default}"
|
||||||
cc_default="${cross_prefix}${cc_default}"
|
cc_default="${cross_prefix}${cc_default}"
|
||||||
nm_default="${cross_prefix}${nm_default}"
|
nm_default="${cross_prefix}${nm_default}"
|
||||||
|
Loading…
Reference in New Issue
Block a user