[LLVMdev] Installing LLVM/Clang/LLDB 3.4 on RHEL 6.2

Dan Liew dan at su-root.co.uk
Sun May 25 00:55:46 PDT 2014


> tl;dr Is there documentation somewhere on how to build LLVM/Clang/LLDB
> without using libstdc and libstdc++?

AFAIK the usual way of doing this is to pass the CXX and CC environment
variables to CMake or the configure script.

CMake
======

$ mkdir build
$ cd build
$ CXX=/path/to/new/g++  CC=/path/to/new/gcc cmake /path/to/llvm/sourcetree
$ make -j<number>

Configure script/make
===================

$ mkdir build
$ cd build
$ CXX=/path/to/new/g++  CC=/path/to/new/gcc
/path/to/llvm/sourcetree/configure
$ make -j<number>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140525/7b28b726/attachment.html>


More information about the llvm-dev mailing list