From 286bb40a9e29a26fa9086213c35522dcf009b95f Mon Sep 17 00:00:00 2001 From: reuk Date: Mon, 29 Jun 2020 17:34:19 +0100 Subject: [PATCH] Clang: Ensure that the VST3 entry point is exported when building with Clang on Windows --- modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp b/modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp index 13321b085d..7a3ed96e02 100644 --- a/modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp +++ b/modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp @@ -3311,10 +3311,10 @@ JUCE_EXPORTED_FUNCTION IPluginFactory* PLUGIN_API GetPluginFactory() { PluginHostType::jucePlugInClientCurrentWrapperType = AudioProcessor::wrapperType_VST3; - #if JUCE_MSVC + #if JUCE_MSVC || (JUCE_WINDOWS && JUCE_CLANG) // Cunning trick to force this function to be exported. Life's too short to // faff around creating .def files for this kind of thing. - #pragma comment(linker, "/EXPORT:" __FUNCTION__ "=" __FUNCDNAME__) + #pragma comment(linker, "/EXPORT:GetPluginFactory=GetPluginFactory") #endif if (globalFactory == nullptr)