如何建立铛/例子/ PrintFunctionNames? [英] How to build clang/examples/PrintFunctionNames?

查看:253
本文介绍了如何建立铛/例子/ PrintFunctionNames?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要一些简单的例子开始使用铿锵。
我下载了LLVM和铛和内置:

I need some simple example to start using clang. I downloaded llvm and clang and built:

mkdir llvm-build
cd llvm-build
../llvm/configure
make

我试图建立从铛例子PrintFunctionNames,但得到的错误消息:

I tried to build PrintFunctionNames from clang examples but got an error message:

../../../../ Makefile.common:61:../../../../Makefile.config:没有这样的文件或目录
../../../../Makefile.common:69:/Makefile.rules:没有这样的文件或目录
令: * 的没有规则,使目标`/Makefile.rules。停止。

../../../../Makefile.common:61: ../../../../Makefile.config: No such file or directory ../../../../Makefile.common:69: /Makefile.rules: No such file or directory make: * No rule to make target `/Makefile.rules'. Stop.

自述文件说,只有做是必要的。
因此,如何构建这个插件?

Readme file says that only make is needed. So how to build this plugin?

推荐答案

走进LLVM的构建/工具/铛,并运行make BUILD_EXAMPLES = 1。

Go into llvm-build/tools/clang, and run "make BUILD_EXAMPLES=1".

这篇关于如何建立铛/例子/ PrintFunctionNames?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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