When running an (MSVC built) VST scanner app, make sure we can utilise debuggable...
[ardour.git] / libs / ardour / plugin_manager.cc
index 2a7eeb93941858d53265d56fd488c6c8a85dafd4..1791e2f10d94e28eacabd986d3df27977b92d286 100644 (file)
@@ -124,7 +124,15 @@ PluginManager::PluginManager ()
 #endif
        if (!PBD::find_file (vstsp,
 #ifdef PLATFORM_WINDOWS
+    #ifdef DEBUGGABLE_SCANNER_APP
+        #if defined(DEBUG) || defined(_DEBUG)
+                               "ardour-vst-scannerD.exe"
+        #else
+                               "ardour-vst-scannerRDC.exe"
+        #endif
+    #else
                                "ardour-vst-scanner.exe"
+    #endif
 #else
                                "ardour-vst-scanner"
 #endif