* [FFmpeg-devel] [PATCH] configure: make --disable-optimizations work on MSVC/ICC (PR #21052)
@ 2025-11-30 3:35 Kacper Michajłow via ffmpeg-devel
0 siblings, 0 replies; only message in thread
From: Kacper Michajłow via ffmpeg-devel @ 2025-11-30 3:35 UTC (permalink / raw)
To: ffmpeg-devel; +Cc: Kacper Michajłow
PR #21052 opened by Kacper Michajłow (kasper93)
URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/21052
Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/21052.patch
_cflags_noopt was previously set to optimize for size as a workaround
for issues in MSVC builds without any optimizations. Specifically the
lack of DCE and constant merging. This is no longer needed, as those
issues have been fixed in our codebase.
From a0205fca5c4cc5e7c029befc32b2baa638f0f345 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Kacper=20Michaj=C5=82ow?= <kasper93@gmail.com>
Date: Sun, 30 Nov 2025 04:31:19 +0100
Subject: [PATCH] configure: make --disable-optimizations work on MSVC/ICC
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
_cflags_noopt was previously set to optimize for size as a workaround
for issues in MSVC builds without any optimizations. Specifically the
lack of DCE and constant merging. This is no longer needed, as those
issues have been fixed in our codebase.
Signed-off-by: Kacper Michajłow <kasper93@gmail.com>
---
configure | 2 --
1 file changed, 2 deletions(-)
diff --git a/configure b/configure
index 883539e361..8fa6e197f9 100755
--- a/configure
+++ b/configure
@@ -5154,7 +5154,6 @@ probe_cc(){
_depflags='-MMD'
_cflags_speed='-O3'
_cflags_size='-Os'
- _cflags_noopt='-O1'
_flags_filter=icc_flags
elif $_cc -v 2>&1 | grep -q xlc; then
_type=xlc
@@ -5268,7 +5267,6 @@ probe_cc(){
_DEPCXXFLAGS='$(CXXFLAGS)'
_cflags_speed="-O2"
_cflags_size="-O1"
- _cflags_noopt="-O1"
if $_cc -nologo- 2>&1 | grep -q Linker; then
_ld_o='-out:$@'
_flags_filter=msvc_flags_link
--
2.49.1
_______________________________________________
ffmpeg-devel mailing list -- ffmpeg-devel@ffmpeg.org
To unsubscribe send an email to ffmpeg-devel-leave@ffmpeg.org
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-11-30 3:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-11-30 3:35 [FFmpeg-devel] [PATCH] configure: make --disable-optimizations work on MSVC/ICC (PR #21052) Kacper Michajłow via ffmpeg-devel
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
This inbox may be cloned and mirrored by anyone:
git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
ffmpegdev@gitmailbox.com
public-inbox-index ffmpegdev
Example config snippet for mirrors.
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git