On 07/09/2014 12:50 PM, Jeffrey Walton wrote:
On Wed, Jul 9, 2014 at 11:42 AM, Marshall Clow <mclow.li...@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
_______________________________________________
cfe-users mailing list
cfe-users@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-users