Fix MIDI input on Portaudio Backend with 32bit Windows release/optimized builds
authorTim Mayberry <mojofunk@gmail.com>
Mon, 3 Aug 2015 13:26:54 +0000 (23:26 +1000)
committerTim Mayberry <mojofunk@gmail.com>
Mon, 3 Aug 2015 14:15:59 +0000 (00:15 +1000)
MIDI input doesn't work with -O3 or -O2 optimization levels, no real idea why
at this point. So just append -O0 to CXXFLAGS to override previous optimization
flags for compiling the PortaudioBackend files

libs/backends/portaudio/wscript

index 9c661d83b00d22216db1fc9beab3ca3b6b0e3fea..967b6044d5bdef00cbb4dbca5f9acbfbf82d1f8d 100644 (file)
@@ -40,3 +40,6 @@ def build(bld):
                    'ARDOURBACKEND_DLL_EXPORTS',
                    'USE_MMCSS_THREAD_PRIORITIES'
                   ]
+    if bld.env['build_target'] == 'mingw':
+        # MIDI input doesn't work with -O3 or -O2 so override
+        obj.cxxflags = [ '-O0' ]