How to build libclang with rtti for Lupdate clang-based c++ parser and QDoc
Unsolved
General and Desktop
-
Currently libclang from official development_release does not have rtti enabled. I want to build libclang with rtti, and keep it work with QDoc.
My build environment: Windows 11, llvm-mingw 18.1.8.
I'm using the following cmake command for libclang 18.1.8:cmake .. -G "Ninja" -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_RTTI=1 -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_INSTALL_PREFIX="C:/libclang1818-llvm" -DCMAKE_CL_64=1 -DLLVM_TARGETS_TO_BUILD="X86" -DLLVM_ENABLE_PROJECTS="clang;clang-tools-extra"
And I got libclang.dll.a not libclang.a. But I built Qt successfully.
Is this OK or need some extra parameters? What's the official parameter?