Update getting started docs

compiler-rt is optional. We often get email from users with compiler-rt
build errors who don't actually need compiler-rt. Marking it optional
should help them avoid those potential problems.

While I'm here, update a reference to the build directory and remove an
obsolete reference to llvm-gcc. Nobody today is under the impression
that Clang depends on GCC.

llvm-svn: 265963
This commit is contained in:
Reid Kleckner 2016-04-11 17:02:34 +00:00
parent 7452093e99
commit 88cbe5a1cc

View File

@ -68,7 +68,7 @@ follows:</p>
<li><tt>cd ../../../..</tt></li> <li><tt>cd ../../../..</tt></li>
</ul> </ul>
</li> </li>
<li>Checkout Compiler-RT: <li>Checkout Compiler-RT (optional):
<ul> <ul>
<li><tt>cd llvm/projects</tt></li> <li><tt>cd llvm/projects</tt></li>
<li><tt>svn co http://llvm.org/svn/llvm-project/compiler-rt/trunk <li><tt>svn co http://llvm.org/svn/llvm-project/compiler-rt/trunk
@ -109,7 +109,7 @@ follows:</p>
scenarios, you can use the <tt>-DGCC_INSTALL_PREFIX</tt> cmake option scenarios, you can use the <tt>-DGCC_INSTALL_PREFIX</tt> cmake option
to tell Clang where the gcc containing the desired libstdc++ is installed. to tell Clang where the gcc containing the desired libstdc++ is installed.
</li> </li>
<li>Try it out (assuming you add llvm/Debug+Asserts/bin to your path): <li>Try it out (assuming you add llvm/build/bin to your path):
<ul> <ul>
<li><tt>clang --help</tt></li> <li><tt>clang --help</tt></li>
<li><tt>clang file.c -fsyntax-only</tt> (check for correctness)</li> <li><tt>clang file.c -fsyntax-only</tt> (check for correctness)</li>
@ -120,10 +120,10 @@ follows:</p>
</li> </li>
</ol> </ol>
<p>Note that the C front-end uses LLVM, but does not depend on llvm-gcc. If you <p>If you encounter problems while building Clang, make sure that your LLVM
encounter problems with building Clang, make sure you have the latest SVN checkout is at the same revision as your Clang checkout. LLVM's interfaces
version of LLVM. LLVM contains support libraries for Clang that will be updated change over time, and mismatched revisions are not expected to work
as well as development on Clang progresses.</p> together.</p>
<h3>Simultaneously Building Clang and LLVM:</h3> <h3>Simultaneously Building Clang and LLVM:</h3>