summaryrefslogtreecommitdiffstats
path: root/llvm/docs/FAQ.html
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2009-04-07 18:51:13 +0000
committerBill Wendling <isanbard@gmail.com>2009-04-07 18:51:13 +0000
commitbf448a10105f631248f35accfbcff8e1b4259fc9 (patch)
tree68011dd347ecce50aaae2f1e3521f6ae22044507 /llvm/docs/FAQ.html
parent1ae487bad56445f763c4037ac1318fba1873af64 (diff)
downloadbcm5719-llvm-bf448a10105f631248f35accfbcff8e1b4259fc9.tar.gz
bcm5719-llvm-bf448a10105f631248f35accfbcff8e1b4259fc9.zip
Offer an explanation of why building LLVM-GCC with objdir == srcdir doesn't
work. llvm-svn: 68530
Diffstat (limited to 'llvm/docs/FAQ.html')
-rw-r--r--llvm/docs/FAQ.html27
1 files changed, 25 insertions, 2 deletions
diff --git a/llvm/docs/FAQ.html b/llvm/docs/FAQ.html
index 3be05989132..83719b74e40 100644
--- a/llvm/docs/FAQ.html
+++ b/llvm/docs/FAQ.html
@@ -74,6 +74,9 @@
<li><a href="#llvmc">The <tt>llvmc</tt> program gives me errors/doesn't
work.</a></li>
+
+ <li><a href="#srcdir-objdir">When I compile LLVM-GCC with srcdir == objdir,
+ it fails. Why?</a></li>
</ol></li>
<li><a href="#felangs">Source Languages</a>
@@ -412,8 +415,9 @@ Stop.
rebuilding.</p>
</div>
-<div class="question"><p><a name="llvmc">
-<p>The <tt>llvmc</tt> program gives me errors/doesn't work.</a></p>
+<div class="question">
+<p><a name="llvmc">The <tt>llvmc</tt> program gives me errors/doesn't
+ work.</a></p>
</div>
<div class="answer">
@@ -421,6 +425,25 @@ Stop.
using <tt>llvm-gcc</tt> instead.</p>
</div>
+<div class="question">
+<p><a href="srcdir-objdir">When I compile LLVM-GCC with srcdir == objdir, it
+ fails. Why?</a></p>
+</div>
+
+<div class="answer">
+<p>The <tt>GNUmakefile</tt> in the top-level directory of LLVM-GCC is a special
+ <tt>Makefile</tt> used by Apple to invoke the <tt>build_gcc</tt> script after
+ setting up a special environment. This has the unforunate side-effect that
+ trying to build LLVM-GCC with srcdir == objdir in a "non-Apple way" invokes
+ the <tt>GNUmakefile</tt> instead of <tt>Makefile</tt>. Because the
+ environment isn't set up correctly to do this, the build fails.</p>
+
+<p>People not building LLVM-GCC the "Apple way" need to build LLVM-GCC with
+ srcdir != objdir, or simply remove the GNUmakefile entirely.</p>
+
+<p>We regret the inconvenience.</p>
+</div>
+
<!-- *********************************************************************** -->
<div class="doc_section"><a name="felangs">Source Languages</a></div>
OpenPOWER on IntegriCloud