Skip to content

Latest commit

 

History

History
60 lines (44 loc) · 1.2 KB

LLVM_SETUP.md

File metadata and controls

60 lines (44 loc) · 1.2 KB

Setting Up LLVM

Setting up LLVM can be quite hairy. This should guide you through the necessary steps to get LLVM up and running to develop metareflect.

Requirements

  • Around 20 GB of free disk space
  • A powerful computer (or some time)

Cloning LLVM

  1. Clone LLVM
git clone https://git.llvm.org/git/llvm.git/ llvm
  1. Clone Clang
cd llvm/tools
git clone https://git.llvm.org/git/clang.git/ clang
  1. Clone Clang-Extra-Tools
cd clang/tools
git clone http://llvm.org/git/clang-tools-extra extra
  1. Clone Metareflect
cd extra
git clone https://github.com/Leandros/metareflect.git metareflect
  1. Add Metareflect to CMakeLists.txt (assuming a posix shell)
echo "add_subdirectory(metareflect/metareflect)" >> CMakeLists.txt

Building LLVM

The following assumes you're working on Windows using Visual Studio. The steps are similar for *nix-like operating systems, simply switch out the Visual Studio CMake generator with ninja.

  1. Generating CMake Build
cd path/to/llvm/root
mkdir build
cd build
cmake .. -G"Visual Studio 2017 Win64"
  1. Open the resulting Visual Studio project

You're all set! Navigate to the metareflect project to get started with development.