Skip to content

Commit c2b9ae4

Browse files
committed
deps.ffmpeg: Enable PDBs for FFmpeg builds on Windows
Enable PDBs for FFmpeg builds on Windows if the Configuration is set to Debug or RelWithDebInfo.
1 parent 006b94d commit c2b9ae4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deps.ffmpeg/99-ffmpeg.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ function Configure {
6767
'--toolchain=msvc'
6868
('--extra-cflags=' + "'-D_WINDLL -MD -D_WIN32_WINNT=0x0A00" + $(if ( $Target -eq 'arm64' ) { ' -D__ARM_PCS_VFP' }) + "'")
6969
('--extra-cxxflags=' + "'-MD -D_WIN32_WINNT=0x0A00'")
70-
('--extra-ldflags=' + "'-APPCONTAINER:NO -MACHINE:${Target}'")
70+
('--extra-ldflags=' + "'-APPCONTAINER:NO -MACHINE:${Target}'" + $(if ( $Configuration -match '(Debug|RelWithDebInfo)' ) { ' -DEBUG' }))
7171
$(if ( $Target -eq 'arm64' ) { '--as=armasm64.exe','--cpu=armv8' })
7272
'--pkg-config=pkg-config'
7373
$(if ( $Target -ne 'x86' ) { '--target-os=win64' } else { '--target-os=win32' })

0 commit comments

Comments
 (0)