Qt: Fix Mac dylib not being included

This commit is contained in:
Stenzek committed 2024-05-14 20:08:53 +10:00
1 parent 18160a8e06
commit b204fd6860
5 files changed
+19 -7

No files matched your search

+8 -1
View File
@@ -1150,7 +1150,14 @@ bool dyn_shaderc::Open()
return true;
Error error;
if (!s_library.Open(DynamicLibrary::GetVersionedFilename("shaderc_shared").c_str(), &error))
#ifdef _WIN32
const std::string libname = DynamicLibrary::GetVersionedFilename("shaderc_shared");
#else
// Use versioned, bundle post-processing adds it..
const std::string libname = DynamicLibrary::GetVersionedFilename("shaderc_shared", 1);
#endif
if (!s_library.Open(libname.c_str(), &error))
{
Log_ErrorFmt("Failed to load shaderc: {}", error.GetDescription());
return false;