[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
>>
>> cd $LLVM_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
>> -DCMAKE_BUILD_TYPE=Release $LIBCXX
>>
>> # 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:

   http://clang.llvm.org/get_started.html

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

   Release+Asserts/bin

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`).

HTH.

-regards,
Larry






More information about the cfe-users mailing list