【问题标题】:How to build a stand-alone clang executable?如何构建独立的clang可执行文件?
【发布时间】:2021-01-26 08:02:37
【问题描述】:

有没有办法将 clang 工具构建为独立的可执行文件?

5 年前类似AST printer 的东西,但它不再符合当前的 LLVM 规范,所以我想知道我应该如何修改我的目录和包含,以便一切正常。

【问题讨论】:

  • 我为 out of tree clangTools here 搭建了一个骨架
  • @qbit 嗨,我在你的存储库上打开了一个问题。

标签: c++ cmake clang llvm


【解决方案1】:

CoARCT 项目演示了基于 Clang libtooling 构建的示例工具;所有构建都是在 LLVM 树之外完成的。或许能帮上忙?

https://github.com/lanl/coarct

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-06-25
    • 2021-04-17
    • 1970-01-01
    • 1970-01-01
    • 2010-09-16
    相关资源
    最近更新 更多