Hi, I never tried the "Ninja Multi-Config" generator with LLVM, no idea if that's even supported.
I only use the "Ninja" generator, with a Release configuration, and a --prefix for the installation. My previous MinGW installation has: C:\Projects\llvm-project\install-mingw\lib\cmake $ tree /f Folder PATH listing C:. ├───clang │ AddClang.cmake │ ClangConfig.cmake │ ClangConfigVersion.cmake │ ClangTargets-release.cmake │ ClangTargets.cmake │ └───llvm AddLLVM.cmake AddOCaml.cmake AddSphinxTarget.cmake CheckAtomic.cmake CheckCompilerVersion.cmake ... For LLVM Clang issues please do use https://discourse.llvm.org/ or Issues · llvm/llvm-project (github.com)<https://github.com/llvm/llvm-project/issues> Cheers, Cristian ________________________________ From: Haowei Hsu <hwhsu1...@gmail.com> Sent: Saturday, August 19, 2023 16:42 To: Cristian Adam <cristian.a...@qt.io> Cc: Qt development mailing list <development@qt-project.org> Subject: Re: [Development] Failed to run configure.bat in qt/qt5 repository on Windows? Hello, Cristian. Regarding the commands and parameters you provided for building LLVM, I will try them later. @echo off cmake -S repo/llvm ^ -B build-mingw ^ -G Ninja ^ -D CMAKE_IGNORE_PREFIX_PATH=c:/Strawberry/c ^ -D CMAKE_BUILD_TYPE=Release ^ -D LLVM_ENABLE_PROJECTS=clang ^ -D LLVM_TARGETS_TO_BUILD=X86 ^ -D LIBCLANG_BUILD_STATIC=ON cmake --build build-mingw cmake --install build-mingw --prefix install-mingw However, below are the steps I previously used to build both the Debug and Release versions of LLVM: 1. git clone --depth 1 --branch llvmorg-16.0.6 https://github.com/llvm/llvm-project.git 2. chdir llvm-project 3. git status 4. git describe --tags 5. vcvarsall.bat x64 6. mkdir build && chdir build 7. cmake -G"Ninja Multi-Config" -DLLVM_ENABLE_PROJECTS=clang ..\llvm 8. cmake --build . --target clang --config Debug --parallel 4 9. cmake --build . --target clang --config Release --parallel 4 10. cmake --install . --config Debug 11. gsudo cmake --install . --config Debug 12. gsudo cmake --install . --config Release You can see the attachment with the full log: log-something-strange-even-if-build-llvm-successfully.txt Although the result doesn't show fatal errors, something seems strange. Therefore, I have a few questions to ask: Problem 1 After executing the `cmake --install` command, I found that the installation directory does not include the CMake configuration files we need, such as `ClangConfig.cmake`. What did I miss? [image.png] Problem 2 After completing the `cmake --install` command for both Debug and Release, at the end, I encountered the following message: file INSTALL cannot find "xxxx/build/Release/lib/LLVMFuzzerCLI.lib" What might be the cause of this? [image.png] Problem 3 Even though I initialized the 64-bit MSVC environment using the `vcvarsall.bat x64` command, why is the default installation directory set to "C:\Program Files (x86)\LLVM"? Shouldn't it be "C:\Program Files\LLVM"? --- Haowei Hsu
-- Development mailing list Development@qt-project.org https://lists.qt-project.org/listinfo/development