Skip to content

Commit 79b5a3d

Browse files
committed
deps.ffmpeg: Enable PDBs for FFmpeg builds on Windows
Enable PDBs for FFmpeg builds on Windows for all configurations. If the configuration is set to Release, or RelWithDebInfo, or MinSizeRel, adjust the linker options accordingly.
1 parent ada74d8 commit 79b5a3d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

deps.ffmpeg/99-ffmpeg.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ function Configure {
6868
'--toolchain=msvc'
6969
('--extra-cflags=' + "'-D_WINDLL -MD -D_WIN32_WINNT=0x0A00" + $(if ( $Target -eq 'arm64' ) { ' -D__ARM_PCS_VFP' }) + "'")
7070
('--extra-cxxflags=' + "'-MD -D_WIN32_WINNT=0x0A00'")
71-
('--extra-ldflags=' + "'-APPCONTAINER:NO -MACHINE:${Target}'")
71+
('--extra-ldflags=' + "'-APPCONTAINER:NO -MACHINE:${Target} -DEBUG" +
72+
$(if ( $Configuration -match '(Release|RelWithDebInfo|MinSizeRel)' ) { ' -OPT:REF -OPT:ICF -LTCG -INCREMENTAL:NO' }) + "'")
7273
$(if ( $Target -eq 'arm64' ) { '--as=armasm64.exe','--cpu=armv8' })
7374
'--pkg-config=pkg-config'
7475
$(if ( $Target -ne 'x86' ) { '--target-os=win64' } else { '--target-os=win32' })

0 commit comments

Comments
 (0)