Add your tool into LLVM project - I mean source code.
来源:互联网 发布:mac更新后重启黑屏 编辑:程序博客网 时间:2024/04/30 05:21
1. create testTool
folder under <source root>/tools/
$ cd <clang source root>/tools$ mkdir testTool & cd testTools
2. create CMakeList.cmake
file and copy below code into it & save
$ vi CMakeList.cmake
add_llvm_tool(testTool)
3. create LLVMBuild.txt
file to describe your tool
$ vi LLVMBuild.txt
[component_0]type = Toolname = testToolparent = Toolsrequired_libraries =)
This is an empty tool project, so we do not need any libraries. If you need, you can do as below:
required_libraries = AsmPrinter DebugInfoDWARF MC Object Support all-targets
4. create main.cpp
file and copy below code into it & save
$ vi main.cpp
#include <cstdio>int main() {printf("Hello LLVM, I am your new tool, my name is testTool!");}
5. done!
$ cd <where you want to build>$ cmake -G Ninja -DCMAKE_INSTALL_PREFIX=<where you want to install>$ ninja testTool
0 0
- Add your tool into LLVM project - I mean source code.
- Add third-party code into your project
- open source project&tool I concern
- Add version for your project
- How to add project into Android BSP
- Flawfinder – Source Code Auditing Tool
- 使用IE Developer tool定位code source
- Trace into .NET Framework Source Code
- compling source code into manged modules
- Source Insight Add and Remove Project Files
- I-worm.Icecubes source code
- Beautify your c/c++ source code
- Code Project - Your First C# Web Service
- Source code for the BirdVis project
- How to add local jar into your local maven repository
- How to import a static library into your test project?
- java source code reverse class diagram of uml,tool
- Three Ways to Inject Your Code into Another Process
- 儿童安全座椅
- ecshop数据库表5(ecs_admin_message)管理留言表
- Android TabLayout+ScrollView 实现仿html锚点
- 51NOD1287 加农炮(线段树)
- 手机和电脑如何制作gif动画
- Add your tool into LLVM project - I mean source code.
- linux系统编程之进程(一):进程基本概述
- Android 必备绝杀技
- Python三部曲之1,研究python3的输入输出
- Android SDK Manager 更新代理配置
- jdbc工具类的抽取。
- 自己写个jQuery
- java虚拟机方法区内存模型
- 错误和异常的区别(Error vs Exception)