diff options
| author | Greg Clayton <gclayton@apple.com> | 2013-05-17 21:06:45 +0000 | 
|---|---|---|
| committer | Greg Clayton <gclayton@apple.com> | 2013-05-17 21:06:45 +0000 | 
| commit | b1e4a25b03ed5f8b4fa20bb4f4933f580b8cd65b (patch) | |
| tree | 3c1bd1b62aa17a3270dfd72316d00d147650fdcd | |
| parent | 7129bd8e259206e7a5fe6a06d0507e95ed4955b0 (diff) | |
| download | bcm5719-llvm-b1e4a25b03ed5f8b4fa20bb4f4933f580b8cd65b.tar.gz bcm5719-llvm-b1e4a25b03ed5f8b4fa20bb4f4933f580b8cd65b.zip | |
Added a few linux build configure/make examples.
llvm-svn: 182160
| -rwxr-xr-x | lldb/www/build.html | 17 | 
1 files changed, 13 insertions, 4 deletions
| diff --git a/lldb/www/build.html b/lldb/www/build.html index 1dfebbfbdf6..2f96d832621 100755 --- a/lldb/www/build.html +++ b/lldb/www/build.html @@ -131,14 +131,14 @@                     ninja on your system. To build using ninja:
                  </p>
                  <code>
 -                  <br>> cmake -C .. -G Ninja
 +                  > cmake -C .. -G Ninja
                    <br>> ninja lldb
                    <br>> ninja check-lldb
                  </code>
                  <h3>Using CMake + Unix Makefiles</h3>
                  <p>If you do not have Ninja, you can still use CMake to generate Unix Makefiles that build LLDB:</p>
                  <code>
 -                  <br>> cmake -C ..
 +                  > cmake -C ..
                    <br>> make
                    <br>> make check-lldb
                  </code>
 @@ -146,12 +146,21 @@                  <p>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:</p>
                  <code>
 -                  <br>> $llvm/configure --enable-cxx11
 +                  > $llvm/configure --enable-cxx11
                    <br>> make </code>
                  <p>Or, if you are using a version of GCC that does not support the <tt>-std=c++11</tt> option:</p>
                  <code>
 -                  <br>> $llvm/configure
 +                  > $llvm/configure
                    <br>> make CXXFLAGS=-std=c++0x</code>
 +                <p>If you are building with a GCC that isn't the default gcc/g++, like gcc-4.7/g++-4.7</p>
 +                <code>
 +                  > $llvm/configure --enable-cxx11 CC=gcc-4.7 CXX=g++-4.7
 +                  <br>> make CC=gcc-4.7 CXX=g++-4.7</code>
 +                <p>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).</p>
 +                <code>
 +                    > make DEBUG_SYMBOLS=0</code>
                  <p> To run the LLDB test suite, run:</p>
                  <code>
                    <br>> make -C tools/lldb/test</code>
 | 

