From 7e146546005d51cb0d96830cf594eadb2afd3e8d Mon Sep 17 00:00:00 2001 From: Roman Pudashkin Date: Thu, 21 May 2026 12:59:26 +0300 Subject: [PATCH] Fix VST module build --- framework/vst/sdk/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/framework/vst/sdk/CMakeLists.txt b/framework/vst/sdk/CMakeLists.txt index 3f84330182..c7c0ce0046 100644 --- a/framework/vst/sdk/CMakeLists.txt +++ b/framework/vst/sdk/CMakeLists.txt @@ -185,6 +185,12 @@ target_include_directories(vst3sdk PUBLIC target_no_warning(vst3sdk -w) +if (CC_IS_MSVC) + # C++20 changed u8"" literals from const char* to const char8_t*, breaking + # VST SDK's module_win32.cpp which passes them to functions expecting std::string. + target_compile_options(vst3sdk PRIVATE /Zc:char8_t-) +endif() + if (CC_IS_CLANG) target_compile_options(vst3sdk PRIVATE -fobjc-arc) endif()