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.
- Successfully Build windows tool -------> x86_64-w64-mingw32-
- Successfully Build clang for Linux(X86) platform
- 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 -jnproc
- 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.