[Lldb-commits] [lldb] r170236 - /lldb/trunk/www/build.html
Daniel Malea
daniel.malea at intel.com
Fri Dec 14 12:02:22 PST 2012
Author: dmalea
Date: Fri Dec 14 14:02:21 2012
New Revision: 170236
URL: http://llvm.org/viewvc/llvm-project?rev=170236&view=rev
Log:
Add GCC instructions to build section of website
Modified:
lldb/trunk/www/build.html
Modified: lldb/trunk/www/build.html
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/www/build.html?rev=170236&r1=170235&r2=170236&view=diff
==============================================================================
--- lldb/trunk/www/build.html (original)
+++ lldb/trunk/www/build.html Fri Dec 14 14:02:21 2012
@@ -53,6 +53,12 @@
<li><a href="http://llvm.org/docs/GettingStarted.html">LLVM</a></li>
<li><a href="http://clang.llvm.org/get_started.html">Clang</a></li>
</ul>
+ <p>Supported compilers for building LLDB on Linux include:</p>
+ <ul>
+ <li>Clang 3.2</li>
+ <li><a href="http://gcc.gnu.org">GCC</a> 4.6.2 (later versions should work as well)</li>
+ </ul>
+ <p>It is recommended to use libstdc++ 4.6 (or higher) to build LLDB on Linux, but using libc++ is also known to work.</p>
<p>In addition to any dependencies required by LLVM and Clang, LLDB needs a few
development packages that may also need to be installed depending on your
system. The current list of dependencies are:</p>
@@ -65,10 +71,6 @@
<code>> yum install swig python-devel libedit-devel</code>
<p>On an Ubuntu system one might run:</p>
<code>> sudo apt-get install swig python-dev libedit-dev </code>
- <p>If building using GCC instead of Clang, GCC 4.6.2 or newer is required.</p>
- <ul>
- <li><a href="http://gcc.gnu.org">GCC</a></li>
- </ul>
<h2 >Building LLDB</h2>
<p>We first need to checkout the source trees into the appropriate locations. Both
Clang and LLDB build as subprojects of LLVM. This means we will be checking out
@@ -105,13 +107,19 @@
<code>> cd $llvm/..
<br>> mkdir build
<br>> cd build
- <br>> $llvm/configure --enable-cxx11 --enable-libcpp
+ </code>
+ <p>If you are using clang:</p>
+ <code>
+ <br>> $llvm/configure --enable-cxx11
<br>> make </code>
+ <p>If you are using GCC 4.6+:</p>
+ <code>
+ <br>> $llvm/configure
+ <br>> make CXXFLAGS=-std=c++0x</code>
<p>Note that once both LLVM and Clang have been configured and built it is not
necessary to perform a top-level <tt>make</tt> to rebuild changes made only to LLDB.
- You can run <tt>make</tt> from the <tt>build/tools/lldb</tt> subdirectory as well. If your
- compiler doesn't support libc++, you may need to tweak or remove the last
- parameter to the configure script.</p>
+ You can run <tt>make</tt> from the <tt>build/tools/lldb</tt> subdirectory as well. If you
+ wish to build with libc++, you should run configure with the <tt>--enable-libcpp</tt> flag.</p>
<h2>Additional Notes</h2>
<p>LLDB has a Python scripting capability and supplies its own Python module,
More information about the lldb-commits
mailing list