When using LLVMConfig.cmake from an installed toolchain in order to build a loadable pass using add_llvm_loadable_module LLVM_ENABLE_PLUGINS and LLVM_PLUGIN_EXT must be set. Also make LLVM_DEFINITIONS be set to what it actually is.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
It'd be good if we were going toward that our scripts would work without LLVMHandleOptions.cmake.
Are there any discussions about it?
Comment Actions
I'm not sure what you mean by this? Building a loadable pass already doesn't require using HandleLLVMOptions.cmake. The only partial dependency there is that HandleLLVMOptions.cmake sets -std=c++11 in the CXXFLAGS and if you don't use HandleLLVMOptions.cmake then you have to do that manually, but that's it as far as I can tell.