Building on Windows11 Failed with missing ClangCL
When I build by executing python setup_env.py -md models/BitNet-b1.58-2B-4T -q i2_s:
Project "E:\Bitnet\BitNet\build\CMakeFiles\4.0.0-rc2\VCTargetsPath.vcxproj" on node 1 (default targets). C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets(456,5): error MSB8020: The build tools for ClangCL (Platform Toolset = 'ClangCL') cannot be found. To build using the ClangCL build tools, please install ClangCL build tools. Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution". [E:\Bitnet\BitNet\build\CMakeFiles\4.0.0-rc2\VCTargetsPath.vcxproj] Done Building Project "E:\Bitnet\BitNet\build\CMakeFiles\4.0.0-rc2\VCTargetsPath.vcxproj" (default targets) -- FAILED.
I have installed Clang from official repository. And Clang-cl is in system PATH:
PS E:\Bitnet\BitNet> clang-cl.exe --version
clang version 20.1.3
Target: x86_64-pc-windows-msvc
Thread model: posix
InstalledDir: C:\Program Files\LLVM\bin
What should I do to continue the building process?
I have also same issue installing the following from the visual studio installer solved it hope it helps....