[PATCH] [libcxxabi] Add a cmake build system.

Alexey Samsonov vonosmas at gmail.com
Wed Jul 2 13:30:11 PDT 2014


================
Comment at: www/index.html:95
@@ +94,3 @@
+  <li><code>mkdir build && cd build</code></li>
+  <li><code>cmake -DLIBCXXABI_LIBCXX_PATH=path/to/libcxx .. # on linux you may need to prefix with CC=clang CXX=clang++</code></li>
+  <li><code>make</code></li>
----------------
Dan Albert wrote:
> Logan Chien wrote:
> > One typo here:
> > 
> >     -DLIBCXXABI_LIBCXX_INCLUDES=path/to/libcxx/include
> > 
> > Also, maybe we can suggest to use:
> > 
> >     -DCMAKE_CXX_COMPILER=clang++ 
> > 
> > instead of setting the environment variable here?
> Oops, forgot to update the first part when I made that change. Good catch.
> 
> For the second part, is there any benefit to doing it that way?
FWIW I agree with CMAKE_CXX_COMPILER note - it looks a bit more cmake-ish.

http://reviews.llvm.org/D4359






More information about the cfe-commits mailing list