<div dir="ltr">Hi,<div> </div><div>     To build clang on windows i have gone through the following step's,</div><div>Try-1 on a windows machine</div><div>------------------------------------</div><div>Followed step's from <a href="http://clang.llvm.org/get_started.html">http://clang.llvm.org/get_started.html</a> ----->   </div><h3 id="gmail-buildWindows" style="color:rgb(45,88,183);padding-top:0.5em;font-family:"Lucida Grande","Lucida Sans Unicode",Arial,Verdana,Helvetica,sans-serif">Using Visual Studio</h3><div>1. Downloaded Git <a href="https://git-scm.com/download">https://git-scm.com/download</a></div><div>2. <b style="font-family:"Lucida Grande","Lucida Sans Unicode",Arial,Verdana,Helvetica,sans-serif">CMake </b><a href="https://cmake.org/download/">https://cmake.org/download/</a></div><div>3. <b style="font-family:"Lucida Grande","Lucida Sans Unicode",Arial,Verdana,Helvetica,sans-serif">Visual Studio 2017 </b></div><div>4. <b style="font-family:"Lucida Grande","Lucida Sans Unicode",Arial,Verdana,Helvetica,sans-serif">Python </b><a href="https://www.python.org/download/">https://www.python.org/download/</a></div><div>5. <b style="font-family:"Lucida Grande","Lucida Sans Unicode",Arial,Verdana,Helvetica,sans-serif">GnuWin32 tools </b><a href="http://sourceforge.net/projects/getgnuwin32/files/">http://sourceforge.net/projects/getgnuwin32/files/</a></div><div>6. Cloned <span style="color:rgb(0,0,0);font-family:monospace">git clone <a href="https://github.com/llvm/llvm-project.git">https://github.com/llvm/llvm-project.git</a></span></div><div><span style="color:rgb(0,0,0);font-family:monospace">7. mkdir build && cd build </span></div><div><span style="color:rgb(0,0,0);font-family:monospace">8. cmake -DLLVM_ENABLE_PROJECTS=clang -G "Visual Studio 15 2017" -A x64 -Thost=x64 ../llvm</span></div><div><font color="#000000" face="monospace">*** Build was successful but, Am not getting what happen I searched each and ervery folder their i haven't found clang executables.</font></div><div><br></div><div>*** You can find the build log & folder structure in the attachment. </div><div><br></div><div><font color="#000000" face="monospace"></font></div><div><font color="#000000" face="monospace">-----------------------------------------------------------------------------------</font></div><div><div>Try-2 on a windows machine</div><div>------------------------------------</div></div><div>steps:</div><div>1. Download MSYS2 </div><div>2. pacman -S cmake</div><div>3. Run </div><div>$ cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE="Release" -DBUILD_SHARED_LIBS=True -DLLVM_USE_SPLIT_DWARF=True -DCMAKE_INSTALL_PREFIX="\Users\Dell\llvm-project\khan\install" -DLLVM_OPTIMIZED_TABLEGEN=True -DLLVM_BUILD_TESTS=False -DDEFAULT_SYSROOT="\Users\Dell\llvm-project\khan\install\sysroot" -DLLVM_DEFAULT_TARGET_TRIPLE="x86_64-w64-mingw32" -DLLVM_TARGETS_TO_BUILD="" -DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD="RISCV" ../llvm</div><div><br></div><div>(Or)</div><div>  DLLVM_DEFAULT_TARGET_TRIPLE="riscv64-unknown-linux-gnu"</div><div>  <br></div><div>Getting an Error:</div><div>-----------------------</div><div>CMake Error at CMakeLists.txt:53 (project):<br>  Generator<br><br>    Unix Makefiles<br><br>  does not support platform specification, but platform<br><br>    64<br><br>  was specified.<br><br><br>-- Configuring incomplete, errors occurred!<br>See also "/home/Dell/llvm-project/build/CMakeFiles/CMakeOutput.log".<br></div><div>------------------------------------------------------------------------------------------------------------------------------</div><div><br></div><div>  *** Can anyone please help me to get clang Windows Executable. </div><div> <br></div><div> Thanks<br></div><div>Ghalib khan.</div></div>