Loadable modules messages under Cygwin

为君一笑 提交于 2019-12-24 09:18:48

问题


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:


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



来源:https://stackoverflow.com/questions/22491275/loadable-modules-messages-under-cygwin

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!