1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-18 00:54:19 +00:00

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

This commit is contained in:
reuk 2020-06-29 17:34:19 +01:00
parent 3c15dc79de
commit 286bb40a9e

View file

@ -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)