[cfe-users] libcxx.llvm.org linux build instructions unclear

Larry Evans cppljevans at suddenlink.net
Thu Jul 10 08:38:50 PDT 2014

On 07/09/2014 12:50 PM, Jeffrey Walton wrote:
> On Wed, Jul 9, 2014 at 11:42 AM, Marshall Clow <mclow.lists at gmail.com> wrote:
>> I would be happy to commit better instructions to the web site (aka “patches
>> welcome”)
>> This is how I build libc++ with cmake (on Mac OS, not Linux)
>> LLVM_BUILD  is a directory where my builds go
>> LIBCXX is where libc++ is checked out
>> # Set up cmake build
>> rm -rf libcxx-cmake-build ; mkdir libcxx-cmake-build ; cd libcxx-cmake-build
>> TRIPLE=-apple- CXX=$LLVM_BIN/clang++ CXX=$LLVM_BIN/clang++ cmake
>> # build libcxx with CMake
>> cd $LLVM_BUILD/libcxx-cmake-build
>> make -j 4
>> ...
> Where is LLVM_BIN? Would it be /usr/bin or /usr/local/bin/?
I assume it's whatever directory appears when:

   which clang++

is entered on the command line.  However, if it wasn't
installed there, then wherever the instructions here:


would place it, which is, in the default configure case, is in the:


directory below whatever build directory where you ran the configure
script( See

   6. Build LLVM and Clang:

in the aforementioned get_started.html file).

OTOH, if you did do a `make install` after step 6, the default location
would be in /usr/local/bin (at least that's where it ended up after I
ran `make install`).



More information about the cfe-users mailing list