summaryrefslogtreecommitdiffstats
path: root/llvm/docs/GCCFEBuildInstrs.html
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2009-04-27 11:21:35 +0000
committerDuncan Sands <baldrick@free.fr>2009-04-27 11:21:35 +0000
commit75bc2250ca44640737bbfccd553ba0198ef5e8c7 (patch)
tree45eaf3b9b6521a0ccbe146bdd4a09d1f45b10f5d /llvm/docs/GCCFEBuildInstrs.html
parent258172e78d2db3d1c021e4165ae3231893958b30 (diff)
downloadbcm5719-llvm-75bc2250ca44640737bbfccd553ba0198ef5e8c7.tar.gz
bcm5719-llvm-75bc2250ca44640737bbfccd553ba0198ef5e8c7.zip
Fix some confusion in the Ada f-e build instructions between
building without optimization and building with checking. llvm-svn: 70205
Diffstat (limited to 'llvm/docs/GCCFEBuildInstrs.html')
-rw-r--r--llvm/docs/GCCFEBuildInstrs.html18
1 files changed, 11 insertions, 7 deletions
diff --git a/llvm/docs/GCCFEBuildInstrs.html b/llvm/docs/GCCFEBuildInstrs.html
index cc0d584cecb..262c1678394 100644
--- a/llvm/docs/GCCFEBuildInstrs.html
+++ b/llvm/docs/GCCFEBuildInstrs.html
@@ -157,29 +157,32 @@ cd llvm-objects
<li><p>Configure LLVM (here it is configured to install into <tt>/usr/local</tt>):</p>
<pre class="doc_code">
-../llvm/configure --prefix=<b>/usr/local</b>
+../llvm/configure --prefix=<b>/usr/local</b> --enable-optimized --enable-assertions
</pre>
<p>If you have a multi-compiler setup and the C++ compiler is not the
default, then you can configure like this:</p>
<pre class="doc_code">
-CXX=<b>PATH_TO_C++_COMPILER</b> ../llvm/configure --prefix=<b>/usr/local</b>
+CXX=<b>PATH_TO_C++_COMPILER</b> ../llvm/configure --prefix=<b>/usr/local</b> --enable-optimized --enable-assertions
</pre>
+
+ <p>To compile without checking (not recommended), replace
+ <tt>--enable-assertions</tt> with <tt>--disable-assertions</tt>.</p>
+
</li>
- <li><p>Build LLVM with checking enabled (use <tt>ENABLE_OPTIMIZED=1</tt> to
- build without checking):</p>
+ <li><p>Build LLVM:</p>
<pre class="doc_code">
-make ENABLE_OPTIMIZED=0
+make
</pre>
</li>
<li><p>Install LLVM (optional):</p>
<pre class="doc_code">
-make ENABLE_OPTIMIZED=0 install
+make install
</pre>
</li>
@@ -195,7 +198,8 @@ cd llvm-gcc-4.2-objects
<li><p>Configure llvm-gcc (here it is configured to install into <tt>/usr/local</tt>).
The <tt>--enable-checking</tt> flag turns on sanity checks inside the compiler.
- If you omit it then LLVM should be built with <tt>make ENABLE_OPTIMIZED=1</tt>.
+ To turn off these checks (not recommended), replace <tt>--enable-checking</tt>
+ with <tt>--disable-checking</tt>.
Additional languages can be appended to the <tt>--enable-languages</tt> switch,
for example <tt>--enable-languages=ada,c,c++</tt>.</p>
OpenPOWER on IntegriCloud