Browse Source

Clang: Ensure that the VST3 entry point is exported when building with Clang on Windows

tags/2021-05-28
reuk 5 years ago
parent
commit
286bb40a9e
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp

+ 2
- 2
modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp View File

@@ -3311,10 +3311,10 @@ JUCE_EXPORTED_FUNCTION IPluginFactory* PLUGIN_API GetPluginFactory()
{ {
PluginHostType::jucePlugInClientCurrentWrapperType = AudioProcessor::wrapperType_VST3; 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 // Cunning trick to force this function to be exported. Life's too short to
// faff around creating .def files for this kind of thing. // faff around creating .def files for this kind of thing.
#pragma comment(linker, "/EXPORT:" __FUNCTION__ "=" __FUNCDNAME__)
#pragma comment(linker, "/EXPORT:GetPluginFactory=GetPluginFactory")
#endif #endif
if (globalFactory == nullptr) if (globalFactory == nullptr)


Loading…
Cancel
Save