[cfe-dev] Build clang on windows platform

ghalib exalaepsemi via cfe-dev cfe-dev at lists.llvm.org
Thu Oct 31 00:26:26 PDT 2019


Hi,

    I was trying to build a clang toolchain for a windows machine, i have
gone through the following step's.

* all this step-up done in ubuntu's platform.

1. Successfully Build windows tool -------> x86_64-w64-mingw32-
2. Successfully Build clang for Linux(X86) platform
3. With the help of this Tool's try to Build clang for Windows platform,
~/build && cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE="Release" \
-DBUILD_SHARED_LIBS=True -DLLVM_USE_SPLIT_DWARF=True \
-DCMAKE_INSTALL_PREFIX="$(INSTALL_DIR_RELEASE)" \
-DLLVM_OPTIMIZED_TABLEGEN=True -DLLVM_BUILD_TESTS=False \
-DDEFAULT_SYSROOT="$(INSTALL_DIR_RELEASE)/sysroot" \
*-DLLVM_DEFAULT_TARGET_TRIPLE="x86_64-w64-mingw32"* \
-DLLVM_TARGETS_TO_BUILD=""* -DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD="RISCV" *\
../llvm
4. make -j`nproc`

* Build was successful, but clang is built for Linux(X86) platform.


**              Can anyone please help me to Built clang for Windows(X86)
platform.

Thanks
khan.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20191031/2f91e80b/attachment.html>


More information about the cfe-dev mailing list