[FFmpeg-cvslog] configure: add fallback to $arch in msvc assembler check.

Reimar Döffinger git at videolan.org
Mon Jan 25 10:09:20 EET 2021


ffmpeg | branch: master | Reimar Döffinger <Reimar.Doeffinger at gmx.de> | Sat Jan 23 13:52:41 2021 +0100| [a16bcc13d9c9db484717c3c19980532fad11c2de] | committer: Josh Dekker

configure: add fallback to $arch in msvc assembler check.

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 at itanimul.li>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a16bcc13d9c9db484717c3c19980532fad11c2de
---

 configure | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure b/configure
index 54fbbd6b5f..df298b4b9b 100755
--- 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"
             ;;



More information about the ffmpeg-cvslog mailing list