Clarify how libstdc++ and other bits of the system toolchain are found

on Linux in the getting started documentation.

Patch by Nathan Ridge.

llvm-svn: 156911
This commit is contained in:
Chandler Carruth 2012-05-16 08:18:58 +00:00
parent f30e08d218
commit cc3123174c

View File

@ -83,15 +83,12 @@ follows:</p>
</li> </li>
<li>If you intend to work on Clang C++ support, you may need to tell it how <li>If you intend to work on Clang C++ support, you may need to tell it how
to find your C++ standard library headers. If Clang cannot find your to find your C++ standard library headers. In general, Clang will detect
system libstdc++ headers, please follow these instructions: the best version of libstdc++ headers available and use them - it will
<ul> look both for system installations of libstdc++ as well as installations
<li>'<tt>gcc -v -x c++ /dev/null -fsyntax-only</tt>' to get the adjacent to Clang itself. If your configuration fits neither of these
path.</li> scenarios, you can use the <tt>--with-gcc-toolchain</tt> configure option
<li>Look for the comment "FIXME: temporary hack: to tell Clang where the gcc containing the desired libstdc++ is installed.
hard-coded paths" in <tt>clang/lib/Frontend/InitHeaderSearch.cpp</tt> and
change the lines below to include that path.</li>
</ul>
</li> </li>
<li>Try it out (assuming you add llvm/Debug+Asserts/bin to your path): <li>Try it out (assuming you add llvm/Debug+Asserts/bin to your path):
<ul> <ul>