<div dir="auto">Hi all,<br><br></div>
<div dir="auto">I've built clang 6.0.1 from source and I'm working on a clang plugin. <br><br></div>
<div dir="auto">I'm confused about the usage of REQUIRES_RTTI.<br></div>
<div dir="auto">the cmake flag LLVM_ENABLE_RTTI is used to generate llvm/clang build files with/without rtti.<br></div>
<div dir="auto">When is REQUIRES_RTTI supposed to be used and how? When building llvm/clang or when using clang to build regular software that relies on rtti? Do I have to pass it to eg. ninja or cmake? If cmake, why have REQUIRES_RTTI and LLVM_ENABLE_RTTI?<br></div>
<div dir="auto">I've also seen LLVM_REQUIRES_RTTI in the llvm/lib/Transforms/Hello/CMakeLists.txt...<br><br></div>
<div dir="auto">My concrete problem is with loading a plugin which contains an llvm::cl::opt. (unresolved symbol for vtable to llvm::cl::parser). <br></div>
<div dir="auto">I don't understand why it's not working.<br></div>
<div dir="auto">llvm/clang are built without rtti (LLVM_ENABLE_RTTI=OFF) and the plugin is also built with -fno-rtti and has only dependencies to llvm libs and std headers (#include <numeric>).<br><br></div>
<div dir="auto">Cheers,<br></div>
<div dir="auto">Viktor</div>