Skip to main content


Showing posts from January, 2017

Installing and Using LLVM Clang on Linux

Here are the specs (Hardware and software) of my machine
Proc : Intel Core i7-4510U @ 2.00GHz
Linux mint 18 Cinnamon
word size - 64 bit
Kernel - 4.4.0-21-generic
swap Size - 10GB
HDD :  150GB

There are two ways of installing
1. Install from apt-get
2. Building from src files using tar.gz
Make sure to check this requirements.
GNU Make3.79, 3.79.1Makefile/build processorGCC>=4.8.0C/C++ compilerpython>=2.7Automated test suitezlib>= library //it worked without this1. Install from apt-get  $ sudo apt-get clang-3.9 llvm-3.9

2.  Building LLVM 3.9.1 from SourceDownload two tar file for llvm & clang from hereExtract both the files inside some folder // say llvmRename llvm-3.9.1.src folder as llvm-3.9 //LLVM_SRCRename cfe-3.9.1.src folder as clang and move inside folder llvm-3.9/toolsCreate a folder llvm/llvm-build and cd llvm-build // LLVM_OBJ cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE="Release" -DLLVM_ENABLE_ASS…