问题描述
使用cmake构建LLVM时,未构建涉及可加载模块的一些组件,并发出以下警告消息:
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.
但Cygwin支持可加载模块 并且可以方便地使用方便的 opt
工具。使用 ./ configure
构建不产生此类消息;并构建组件。为什么会出现这些消息?是否有一种方法来构建使用cmake,并仍然有这些组件构建?
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?
推荐答案
可装载模块不支持Windows缺乏在这个平台上的动态链接。
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.
在Windows上使用可加载模块的唯一方法是将整个LLVM构建为一个大的.DLL
The only way to use loadable modules on windows is to build the whole LLVM into a big .DLL
这篇关于Cygwin下的可加载模块消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!