gregcman / llvm-builds

Build c++ code which links against LLVM versions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build C++ code which links against LLVM

This project uses Eli Bendersky's llvm-clang-samples repo in order to build C++ code that links against LLVM binaries.

How To:

  1. Download LLVM release, unzip, rename to "src" and put into directory with version number.

e.g.: /3.8.0/src/ becomes the root of the LLVM source tree for version 3.8.0

  1. Put the code you wish to link against in the directory /3.8.0/llvm-clang-samples-llvm3.8/src_custom/

  2. run build.sh 3.8.0 to use cmake or ninja.sh 3.8.0 to use the ninja build system.

  3. The compiled binary will appear somewhere, but I forget where.

In order to use other llvm versions, replace 3.8.0 with your version.

About

Build c++ code which links against LLVM versions


Languages

Language:C++ 56.2%Language:Python 16.5%Language:LLVM 11.6%Language:Makefile 7.2%Language:C 6.6%Language:Shell 0.8%Language:JavaScript 0.4%Language:HTML 0.4%Language:Vim Script 0.2%Language:Cuda 0.1%