MSVC: fix debug builds

This commit is contained in:
EZ4Stephen authored and Robin Gareus committed 2026-08-05 01:17:07 +02:00
1 parent 7b1ca448ce
commit 8618a6fe07
1 file changed
+5 -2
+5 -2
View File
@@ -93,7 +93,7 @@ compiler_flags_dictionaries= {
'mconsole': ['-mconsole'],
},
'msvc' : {
'debuggable' : ['/DDEBUG', '/Od', '/Z7', '/MDd', '/Gd', '/EHsc', '/JMC'],
'debuggable' : ['/Od', '/Z7', '/MDd', '/Gd', '/EHsc', '/JMC'],
'linker-debuggable' : ['/DEBUG', '/INCREMENTAL' ],
'nondebuggable' : ['/DNDEBUG', '/Ob2', '/MD', '/Gd', '/EHsc'],
'profile' : ['/Oy-'],
@@ -1293,7 +1293,10 @@ int main () { return 0; }
# see http://gareus.org/wiki/ardour_windows_gdk_and_cairo
conf.env.append_value('CFLAGS', '-DUSE_CAIRO_IMAGE_SURFACE')
conf.env.append_value('CXXFLAGS', '-DUSE_CAIRO_IMAGE_SURFACE')
conf.env.append_value('LIB', 'pthreadVC3')
if conf.env['DEBUG']:
conf.env.append_value('LIB', 'pthreadVC3d')
else:
conf.env.append_value('LIB', 'pthreadVC3')
conf.env.append_value('LIB', 'Ws2_32')
conf.env.append_value('LIB', 'Advapi32')
conf.env.append_value('LIB', 'Shell32')