mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-12 17:25:49 +00:00
Fix some confusion in the Ada f-e build instructions between
building without optimization and building with checking. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@70205 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -157,29 +157,32 @@ cd llvm-objects
|
|||||||
<li><p>Configure LLVM (here it is configured to install into <tt>/usr/local</tt>):</p>
|
<li><p>Configure LLVM (here it is configured to install into <tt>/usr/local</tt>):</p>
|
||||||
|
|
||||||
<pre class="doc_code">
|
<pre class="doc_code">
|
||||||
../llvm/configure --prefix=<b>/usr/local</b>
|
../llvm/configure --prefix=<b>/usr/local</b> --enable-optimized --enable-assertions
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
<p>If you have a multi-compiler setup and the C++ compiler is not the
|
<p>If you have a multi-compiler setup and the C++ compiler is not the
|
||||||
default, then you can configure like this:</p>
|
default, then you can configure like this:</p>
|
||||||
|
|
||||||
<pre class="doc_code">
|
<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>
|
</pre>
|
||||||
|
|
||||||
|
<p>To compile without checking (not recommended), replace
|
||||||
|
<tt>--enable-assertions</tt> with <tt>--disable-assertions</tt>.</p>
|
||||||
|
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li><p>Build LLVM with checking enabled (use <tt>ENABLE_OPTIMIZED=1</tt> to
|
<li><p>Build LLVM:</p>
|
||||||
build without checking):</p>
|
|
||||||
|
|
||||||
<pre class="doc_code">
|
<pre class="doc_code">
|
||||||
make ENABLE_OPTIMIZED=0
|
make
|
||||||
</pre>
|
</pre>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li><p>Install LLVM (optional):</p>
|
<li><p>Install LLVM (optional):</p>
|
||||||
|
|
||||||
<pre class="doc_code">
|
<pre class="doc_code">
|
||||||
make ENABLE_OPTIMIZED=0 install
|
make install
|
||||||
</pre>
|
</pre>
|
||||||
</li>
|
</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>).
|
<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.
|
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,
|
Additional languages can be appended to the <tt>--enable-languages</tt> switch,
|
||||||
for example <tt>--enable-languages=ada,c,c++</tt>.</p>
|
for example <tt>--enable-languages=ada,c,c++</tt>.</p>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user