如何在Eclipse上构建LLVM源代码? [英] How to build LLVM source code on Eclipse?

查看:487
本文介绍了如何在Eclipse上构建LLVM源代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试向llvm编译器基础架构添加新的通行证。
我已经能够使用make构建LLVM-2.9,但是我想使用Eclipse
构建,以便我可以跟踪代码。
我使用LinuxGcc工具链
和CDT内部构建器(Eclipse与CDT-7.0)将llvm源文件导入到c ++项目。但是它给出了一些错误。
这是使用eclipse构建llvm的正确方法吗?
请建议我使用Eclipse构建llvm源的步骤。
注意:平台ubuntu。

解决方案

您可以使用 cmake -GEclipse CDT4 - Unix Makefile 来生成本机Eclipse项目集。它可能需要调整您的 CMakeLists.txt 以删除in-source构建的检查(因为Eclipse只能支持同一目录中的项目文件和源,但由于某些原因当前的CMakeLists仅允许MSVS) - 只需按照错误消息。


I am trying to add a new pass to the llvm compiler infrastructure. I have been able to build LLVM-2.9 using make.But I wants to build using Eclipse so that I can trace the code. I imported llvm source files to c++ project with LinuxGcc tool chain and CDT internal builder(Eclipse with CDT-7.0).But it gives some errors. Is this is a right way to build llvm using eclipse?. Please suggest me steps involved to build llvm source using Eclipse. Note: Platform ubuntu.

解决方案

You can use cmake -G"Eclipse CDT4 - Unix Makefiles" to produce the native Eclipse set of projects. It might require tweaking your CMakeLists.txt to remove the check for in-source builds (since Eclipse can only support project files and sources in the same directory, but for some reason the current CMakeLists allows it for MSVS only) - just follow the error messages.

这篇关于如何在Eclipse上构建LLVM源代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆