<li><a href="http://llvm.org/docs/GettingStarted.html">LLVM</a></li>\r
<li><a href="http://clang.llvm.org/get_started.html">Clang</a></li>\r
</ul>\r
+ <p>Supported compilers for building LLDB on Linux include:</p>\r
+ <ul>\r
+ <li>Clang 3.2</li>\r
+ <li><a href="http://gcc.gnu.org">GCC</a> 4.6.2 (later versions should work as well)</li>\r
+ </ul>\r
+ <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>\r
<p>In addition to any dependencies required by LLVM and Clang, LLDB needs a few\r
development packages that may also need to be installed depending on your\r
system. The current list of dependencies are:</p>\r
<code>> yum install swig python-devel libedit-devel</code>\r
<p>On an Ubuntu system one might run:</p>\r
<code>> sudo apt-get install swig python-dev libedit-dev </code>\r
- <p>If building using GCC instead of Clang, GCC 4.6.2 or newer is required.</p>\r
- <ul>\r
- <li><a href="http://gcc.gnu.org">GCC</a></li>\r
- </ul>\r
<h2 >Building LLDB</h2>\r
<p>We first need to checkout the source trees into the appropriate locations. Both\r
Clang and LLDB build as subprojects of LLVM. This means we will be checking out\r
<code>> cd $llvm/..\r
<br>> mkdir build\r
<br>> cd build\r
- <br>> $llvm/configure --enable-cxx11 --enable-libcpp\r
+ </code>\r
+ <p>If you are using clang:</p>\r
+ <code>\r
+ <br>> $llvm/configure --enable-cxx11\r
<br>> make </code>\r
+ <p>If you are using GCC 4.6+:</p>\r
+ <code>\r
+ <br>> $llvm/configure\r
+ <br>> make CXXFLAGS=-std=c++0x</code>\r
<p>Note that once both LLVM and Clang have been configured and built it is not\r
necessary to perform a top-level <tt>make</tt> to rebuild changes made only to LLDB.\r
- You can run <tt>make</tt> from the <tt>build/tools/lldb</tt> subdirectory as well. If your\r
- compiler doesn't support libc++, you may need to tweak or remove the last\r
- parameter to the configure script.</p>\r
+ You can run <tt>make</tt> from the <tt>build/tools/lldb</tt> subdirectory as well. If you\r
+ wish to build with libc++, you should run configure with the <tt>--enable-libcpp</tt> flag.</p>\r
\r
<h2>Additional Notes</h2>\r
<p>LLDB has a Python scripting capability and supplies its own Python module,\r