[cfe-users] libcxx.llvm.org linux build instructions unclear
Ben Pope
benpope81 at gmail.com
Tue Jul 8 22:23:29 PDT 2014
On Wednesday, July 09, 2014 02:48 AM, Larry Evans wrote:
> The instructions on:
> http://libcxx.llvm.org/
> say:
> We can now run CMake:
>
> CC=clang CXX=clang++ cmake -G "Unix Makefiles"
> -DLIBCXX_CXX_ABI=libstdc++
> -DLIBCXX_LIBSUPCXX_INCLUDE_PATHS="/usr/include/c++/4.7/;/usr/include/c++/4.7/x86_64-linux-gnu/"
> -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr <libc++-source-dir>
>
> however, it does not say what to put for <libc++-source-dir>
> or in which directory this command is to be run. One might
> guess this command is to be run inb the directory where the buildit
> script is located, because that's what the earlier instructions
> (for Mac OS) were run from; however, that's not at all clear.
CMake encourages out of source build.
You run CMake in your build directory and you point it to your source
diectory (the one with CMakeLists.txt).
E.g.:
/libcxx_build
/libcxx
/include
CMakeLists.txt
cd /libcxx/build
CMake ../libcxx
Or:
/libcxx
/build
/include
CMakeLists.txt
cd /libcxx/build
CMake ..
Ben
More information about the cfe-users
mailing list