如何找到或生成示例 LLVM 项目?
How can I find or generate a sample LLVM project?
在LLVM documentation中关于如何开始一个项目,它提到:
(....)
There are two ways that you can set all of these variables:
(.....)
You can use the pre-made LLVM sample project. This sample project
includes Makefiles, a configure script that can be used to configure
the location of LLVM, and the ability to support multiple object
directories from a single source directory.
问题是,我不确定它位于何处或如何在我的 LLVM 安装中生成此示例项目 - 我已经克隆并编译了 LLVM 项目。
在文档的另一个地方提到它被放置在 llvm/projects/samples
,但是我找不到它,因为 fonder 不包含任何项目(但是,它包含一个 CMakeLists.txt
和LLVMBuild.txt
,让我觉得我可以生成这个)。
我是不是漏掉了一些很明显的东西?
提前致谢。
它已从 release/3.5.x 分支中删除,但是您仍然可以在 release/2.4.x 分支或更低分支中找到它。
https://github.com/llvm/llvm-project/tree/release/3.4.x/llvm/projects
在LLVM documentation中关于如何开始一个项目,它提到:
(....)
There are two ways that you can set all of these variables:
(.....)
You can use the pre-made LLVM sample project. This sample project includes Makefiles, a configure script that can be used to configure the location of LLVM, and the ability to support multiple object directories from a single source directory.
问题是,我不确定它位于何处或如何在我的 LLVM 安装中生成此示例项目 - 我已经克隆并编译了 LLVM 项目。
在文档的另一个地方提到它被放置在 llvm/projects/samples
,但是我找不到它,因为 fonder 不包含任何项目(但是,它包含一个 CMakeLists.txt
和LLVMBuild.txt
,让我觉得我可以生成这个)。
我是不是漏掉了一些很明显的东西?
提前致谢。
它已从 release/3.5.x 分支中删除,但是您仍然可以在 release/2.4.x 分支或更低分支中找到它。
https://github.com/llvm/llvm-project/tree/release/3.4.x/llvm/projects