Native Windows method without any 3rd party tools:
winget install LLVM
# or
winget install --id=LLVM.LLVM -e
You can also install specific version if you don't want the latest one
winget install LLVM.LLVM --version 19.1.0
Answer from phuclv on Stack OverflowWhat is considered best practice to get LLVM working on Windows?
Does LLVM work on Windows?
Videos
Native Windows method without any 3rd party tools:
winget install LLVM
# or
winget install --id=LLVM.LLVM -e
You can also install specific version if you don't want the latest one
winget install LLVM.LLVM --version 19.1.0
If you're on a machine using Windows 11 and having the command line installer scoop installed, I have managed to install llvm easily just running:
scoop install main/llvm
Do I really have to build the whole thing just to be able to use it for codegen on Windows?
I know I can use msys2 (and it works actually), but AFAIK, because it simulates more or less Linux, it is not possible to build for Visual Studio 2019 and thus also use the Visual Studio debugger (correct me if I'm wrong of course, hopefully I am).
Before I invest even more time than I already did into simply making llvm work on Windows, I'd like to know what is the best practice to use llvm for codegen on Windows?