With juce 9 windows using clang and ninja give error mingw not support. how can compile?

Hi
Wy i can not use clang and ninja or not use ninja to compile on windows ?. i see in source there are many places that check for mingw and stop compile. I do not want microsoft compiler because clang is much faster. i test juce 7 and clang this give no mingw not support, but clang give error when compile juce audioplugin example.

so what can do ?. i use cmake and visual code and i set the compiler set correct. i can choose between GCC 16.x and clang newest. with GCC and juce 7 i can compile and standalone run but vst 3 create not run.

plugin allow scaling setting from 95% - 200% or use system scaling. the strange thing is also when use the free to download sessionwire input it give noise. it is not digital noise. there seem something play a 2 sec sample with noise. it is not so loud, with music play this mostly not hear.

Does it not work because i have no juce license ?

You can use Clang and Ninja on Windows. The problem is which Clang. JUCE doesn’t support the MinGW toolchain at all. juce_TargetPlatform.h has #ifdef __MINGW32__ #error "MinGW is not supported...", and any Clang that targets x86_64-w64-windows-gnu (MSYS2/MinGW clang, or the clang that ships with GCC distros) defines __MINGW32__. That’s the error you’re hitting, and it’s also why the GCC build gives you a broken VST3.

What you want is Clang with the MSVC ABI, which means clang-cl. It ships with Visual Studio (“C++ Clang tools for Windows” in the installer), or you can use an official LLVM release. You still need the Windows SDK and the MSVC STL, but cl.exe never runs. The Build Tools package is enough, so you don’t need the full IDE.

From an “x64 Native Tools Command Prompt” (or after running vcvars64.bat):

cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=clang-cl -DCMAKE_CXX_COMPILER=clang-cl
cmake --build build

In VS Code with CMake Tools, pick the “Clang … (MSVC CLI) x86_64-pc-windows-msvc” kit, not a MinGW/GNU one. Delete the build folder first, because CMake caches the compiler.

And no, this has nothing to do with having a JUCE licence.