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:
parent
3c15dc79de
commit
286bb40a9e
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue