Loadable modules messages under Cygwin

2019-08-10 14:18发布

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?

1条回答
我欲成王,谁敢阻挡
2楼-- · 2019-08-10 14:55

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

查看更多
登录 后发表回答