diff --git a/lldb/www/build.html b/lldb/www/build.html index 1dfebbfbdf6fa3869f2fd32073d207ad05923f60..2f96d832621f2940b387f08b73bf8096030632fb 100755 --- a/lldb/www/build.html +++ b/lldb/www/build.html @@ -131,14 +131,14 @@ ninja on your system. To build using ninja:
-
> cmake -C .. -G Ninja
+ > cmake -C .. -G Ninja
> ninja lldb
> ninja check-lldb
If you do not have Ninja, you can still use CMake to generate Unix Makefiles that build LLDB:
-
> cmake -C ..
+ > cmake -C ..
> make
> make check-lldb
@@ -146,12 +146,21 @@
If you do not have CMake, it is still possible to build LLDB using the autoconf build system. If you are using Clang or GCC 4.7+, run:
-
> $llvm/configure --enable-cxx11
+ > $llvm/configure --enable-cxx11
> make
Or, if you are using a version of GCC that does not support the -std=c++11 option:
-
> $llvm/configure
+ > $llvm/configure
> make CXXFLAGS=-std=c++0x
+ If you are building with a GCC that isn't the default gcc/g++, like gcc-4.7/g++-4.7
+
+ > $llvm/configure --enable-cxx11 CC=gcc-4.7 CXX=g++-4.7
+
> make CC=gcc-4.7 CXX=g++-4.7
+ If you are running in a system that doesn't have a lot of RAM (less than 4GB), you might want to disable + debug symbols by specifying DEBUG_SYMBOLS=0 when running make. You will know if you need to enable this + because you will fail to link clang (the linker will get a SIGKILL and exit with status 9).
+
+ > make DEBUG_SYMBOLS=0
To run the LLDB test suite, run:
> make -C tools/lldb/test