When building LLVM using cmake, a few components involving "Loadable modules" are not built, and warning messages such as the following are issued:
-- LLVMHello ignored -- Loadable modules not supported on this platform.
...
-- BugpointPasses ignored -- Loadable modules not supported on this platform.
...
-- SampleAnalyzerPlugin ignored -- Loadable modules not supported on this platform.
-- PrintFunctionNames ignored -- Loadable modules not supported on this platform.
But loadable modules are supported under Cygwin; and the handy opt
tool can readily be used. Building with ./configure
produces no such messages; and the components are built. Why do these messages occur? Is there a way to build using cmake, and still have these components built?
The loadable modules are not supported on Windows due to lack of dynamic linking on this platform. The plugins definitely should be disabled on autoconf build as well.
The only way to use loadable modules on windows is to build the whole LLVM into a big .DLL