【问题标题】:Loadable modules messages under CygwinCygwin 下的可加载模块消息
【发布时间】:2014-03-18 21:19:10
【问题描述】:

使用cmake构建LLVM时,一些涉及“可加载模块”的组件没有构建,并发出如下警告信息:

-- 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 构建,并且仍然构建这些组件?

【问题讨论】:

    标签: dll cygwin shared-libraries llvm


    【解决方案1】:

    由于此平台上缺少动态链接,Windows 不支持可加载模块。这些插件肯定也应该在 autoconf 构建时被禁用。

    在 Windows 上使用可加载模块的唯一方法是将整个 LLVM 构建成一个大的 .DLL

    【讨论】:

    • 唉,这是一个常见的误解。正如我在问题中所说,Cygwin 支持可加载模块;并且已经好几年了。 Visual Studio 不支持可加载模块 - 这通常与 Windows 混为一谈。我的问题实际上只与错误消息有关,使用 cmake 时;使用(再次)配置不会产生这样的消息。请注意,这些消息与平台有关。
    猜你喜欢
    • 1970-01-01
    • 2017-04-07
    • 2016-06-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-02-24
    • 1970-01-01
    相关资源
    最近更新 更多