PR #23407 opened by Niklas Haas (haasn) URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/23407 Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/23407.patch
This suppresses the addition of #line and other directives in the preprocessed output, which is what we want when we're invoking the hostcc just to preprocess some files. (Currently, this variable is only used for configure-internal checks anyways) On MSVC/Intel, /EP is the equivalent syntax, though we use -EP instead for consistency. Signed-off-by: Niklas Haas <[email protected]> # Summary of changes Split off from #23126 for visibility. That PR needs this change because it relies on using the C preprocessor to auto-generate NASM macros, which requires a "clean" output from the preprocessor (without #line directives and other noise). >From c10c584e5e19ca90e603a45610552570fef74f4f Mon Sep 17 00:00:00 2001 From: Niklas Haas <[email protected]> Date: Sat, 6 Jun 2026 18:50:22 +0200 Subject: [PATCH] configure: add -P to $CC_E flag This suppresses the addition of #line and other directives in the preprocessed output, which is what we want when we're invoking the hostcc just to preprocess some files. (Currently, this variable is only used for configure-internal checks anyways) On MSVC/Intel, /EP is the equivalent syntax, though we use -EP instead for consistency. Signed-off-by: Niklas Haas <[email protected]> --- configure | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/configure b/configure index f30f4bfa42..ccb0ab9420 100755 --- a/configure +++ b/configure @@ -4521,19 +4521,19 @@ ldflags_filter=echo AS_C='-c' AS_O='-o $@' CC_C='-c' -CC_E='-E -o $@' +CC_E='-E -P -o $@' CC_O='-o $@' CXX_C='-c' CXX_O='-o $@' OBJCC_C='-c' -OBJCC_E='-E -o $@' +OBJCC_E='-E -P -o $@' OBJCC_O='-o $@' X86ASM_O='-o $@' LD_O='-o $@' LD_LIB='-l%' LD_PATH='-L' HOSTCC_C='-c' -HOSTCC_E='-E -o $@' +HOSTCC_E='-E -P -o $@' HOSTCC_O='-o $@' HOSTLD_O='-o $@' GLSLC_O='-o $@' @@ -5434,7 +5434,7 @@ probe_cc(){ _ld_o='-Fe$@' fi _cc_o='-Fo$@' - _cc_e='-P' + _cc_e='-P -EP' _flags_filter=icl_flags _ld_lib='%.lib' _ld_path='-libpath:' @@ -5484,7 +5484,7 @@ probe_cc(){ _flags_filter=msvc_flags fi _cc_o='-Fo$@' - _cc_e='-P -Fi$@' + _cc_e='-P -EP -Fi$@' _ld_lib='%.lib' _ld_path='-libpath:' _flags='-nologo' -- 2.52.0 _______________________________________________ ffmpeg-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]
