]> git.sesse.net Git - ffmpeg/commitdiff
configure: add fallback to $arch in msvc assembler check.
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>
Sat, 23 Jan 2021 12:52:41 +0000 (13:52 +0100)
committerJosh Dekker <josh@itanimul.li>
Mon, 25 Jan 2021 08:09:00 +0000 (09:09 +0100)
Setting the defaults for $arch happens only later, so
the current code would not set AS correctly if --arch
was not specified on the command-line.
Fix it by adding an explicit fallback to $arch_default.

Signed-off-by: Josh Dekker <josh@itanimul.li>
configure

index 54fbbd6b5f2c6ac66b3e43374340d640cdcc52f2..df298b4b9ba914a1343265709bc0e6aa38ae6f22 100755 (executable)
--- a/configure
+++ b/configure
@@ -4268,7 +4268,7 @@ case "$toolchain" in
         ld_default="$source_path/compat/windows/mslink"
         nm_default="dumpbin.exe -symbols"
         ar_default="lib.exe"
-        case "$arch" in
+        case "${arch:-$arch_default}" in
         aarch64|arm64)
             as_default="armasm64.exe"
             ;;