PR #22692 opened by Kacper Michajłow (kasper93) URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/22692 Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/22692.patch
Fixes warnings in host compile, like: cl : Command line warning D9024 : unrecognized source file type 'doc/print_options.o', object file assumed link.exe takes any file as an object. Technically this changes tools to be linked with link.exe directly, instead of driving it through compiler. This would be already the case for target compiler with --toolchain=msvc, now it always do that for target/host compile when detected compiler is msvc. This also affects clang-cl. From ab4877147b817cda19d0320b384e6d855dedc76c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20Michaj=C5=82ow?= <[email protected]> Date: Thu, 2 Apr 2026 19:56:29 +0200 Subject: [PATCH] configure: use mslink wrapper for msvc cc by default MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes warnings in host compile, like: cl : Command line warning D9024 : unrecognized source file type 'doc/print_options.o', object file assumed link.exe takes any file as an object. Technically this changes tools to be linked with link.exe directly, instead of driving it through compiler. This would be already the case for target compiler with --toolchain=msvc, now it always do that for target/host compile when detected compiler is msvc. This also affects clang-cl. Signed-off-by: Kacper Michajłow <[email protected]> --- configure | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configure b/configure index 98720807e9..a0ec750407 100755 --- a/configure +++ b/configure @@ -5510,7 +5510,9 @@ test -n "$cc_type" && enable $cc_type || : ${as_default:=$cc} : ${objcc_default:=$cc} : ${dep_cc_default:=$cc} +test "$cc_type" = "msvc" && : ${ld_default:=$source_path/compat/windows/mslink} : ${ld_default:=$cc} +test "$hostcc_type" = "msvc" && : ${host_ld_default:=$source_path/compat/windows/mslink} : ${host_ld_default:=$host_cc} set_default ar as objcc dep_cc ld ln_s host_ld windres response_files -- 2.52.0 _______________________________________________ ffmpeg-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]
