mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 05:29:24 +00:00
Add more spacing.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47028 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d051f7a13d
commit
15bfd89b99
@ -87,10 +87,10 @@ top-level <tt>README.LLVM</tt> file, adding ",ada" to EXTRALANGS, for example:
|
||||
<p>There are some complications however:</p>
|
||||
|
||||
<ol>
|
||||
<li>The only platform for which the Ada front-end is known to build is
|
||||
<li><p>The only platform for which the Ada front-end is known to build is
|
||||
32 bit intel x86 running linux. It is unlikely to build for other
|
||||
systems without some work.</li>
|
||||
<li>The build requires having a compiler that supports Ada, C and C++.
|
||||
systems without some work.</p></li>
|
||||
<li><p>The build requires having a compiler that supports Ada, C and C++.
|
||||
The Ada front-end is written in Ada so an Ada compiler is needed to
|
||||
build it. The LLVM parts of llvm-gcc are written in C++ so a C++
|
||||
compiler is needed to build them. The rest of gcc is written in C.
|
||||
@ -99,15 +99,15 @@ top-level <tt>README.LLVM</tt> file, adding ",ada" to EXTRALANGS, for example:
|
||||
the rest of gcc). Otherwise it is possible to combine two versions
|
||||
of gcc, one that supports Ada and C (such as
|
||||
<a href="http://libre.adacore.com/">GNAT GPL Edition</a>) and another
|
||||
which supports C++, see below.</li>
|
||||
which supports C++, see below.</p></li>
|
||||
</ol>
|
||||
|
||||
<p>Supposing appropriate compilers are available, llvm-gcc with Ada support can
|
||||
be built using the following recipe:</p>
|
||||
|
||||
<ol>
|
||||
<li>Download the <a href="http://llvm.org/releases/download.html">LLVM source</a>
|
||||
and unpack it:
|
||||
<li><p>Download the <a href="http://llvm.org/releases/download.html">LLVM source</a>
|
||||
and unpack it:</p>
|
||||
|
||||
<div class="doc_code">
|
||||
<pre>wget http://llvm.org/releases/2.2/llvm-2.2.tar.gz
|
||||
@ -115,17 +115,17 @@ tar xzf llvm-2.2.tar.gz
|
||||
mv llvm-2.2 llvm</pre>
|
||||
</div>
|
||||
|
||||
or <a href="http://llvm.org/docs/GettingStarted.html#checkout">check out the
|
||||
latest version from subversion</a>:
|
||||
<p>or <a href="http://llvm.org/docs/GettingStarted.html#checkout">check out the
|
||||
latest version from subversion</a>:</p>
|
||||
|
||||
<div class="doc_code">
|
||||
<pre>svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm</pre>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>Download the
|
||||
<li><p>Download the
|
||||
<a href="http://llvm.org/releases/download.html">llvm-gcc-4.2 source</a>
|
||||
and unpack it:
|
||||
and unpack it:</p>
|
||||
|
||||
<div class="doc_code">
|
||||
<pre>wget http://llvm.org/releases/2.2/llvm-gcc4.2-2.2.source.tar.gz
|
||||
@ -133,16 +133,16 @@ tar xzf llvm-gcc4.2-2.2.source.tar.gz
|
||||
mv llvm-gcc4.2-2.2.source llvm-gcc-4.2</pre>
|
||||
</div>
|
||||
|
||||
or <a href="http://llvm.org/docs/GettingStarted.html#checkout">check out the
|
||||
latest version from subversion</a>:
|
||||
<p>or <a href="http://llvm.org/docs/GettingStarted.html#checkout">check out the
|
||||
latest version from subversion</a>:</p>
|
||||
|
||||
<div class="doc_code">
|
||||
<pre>svn co http://llvm.org/svn/llvm-project/llvm-gcc-4.2/trunk llvm-gcc-4.2</pre>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>Make a build directory <tt>llvm-objects</tt> for llvm and make it the
|
||||
current directory:
|
||||
<li><p>Make a build directory <tt>llvm-objects</tt> for llvm and make it the
|
||||
current directory:</p>
|
||||
|
||||
<div class="doc_code">
|
||||
<pre>mkdir llvm-objects
|
||||
@ -150,36 +150,36 @@ cd llvm-objects</pre>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>Configure LLVM (here it is configured to install into <tt>/usr/local</tt>):
|
||||
<li><p>Configure LLVM (here it is configured to install into <tt>/usr/local</tt>):</p>
|
||||
|
||||
<div class="doc_code">
|
||||
<pre>../llvm/configure --prefix=/usr/local</pre>
|
||||
</div>
|
||||
|
||||
If you have a multi-compiler setup and the C++ compiler is not the
|
||||
default, then you can configure like this:
|
||||
<p>If you have a multi-compiler setup and the C++ compiler is not the
|
||||
default, then you can configure like this:</p>
|
||||
|
||||
<div class="doc_code">
|
||||
<pre>CXX=<b>PATH_TO_C++_COMPILER</b> ../llvm/configure --prefix=/usr/local</pre>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>Build LLVM:
|
||||
<li><p>Build LLVM:</p>
|
||||
|
||||
<div class="doc_code">
|
||||
<pre>make</pre>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>Install LLVM (optional):
|
||||
<li><p>Install LLVM (optional):</p>
|
||||
|
||||
<div class="doc_code">
|
||||
<pre>make install</pre>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>Make a build directory <tt>llvm-gcc-4.2-objects</tt> for llvm-gcc and make it the
|
||||
current directory:
|
||||
<li><p>Make a build directory <tt>llvm-gcc-4.2-objects</tt> for llvm-gcc and make it the
|
||||
current directory:</p>
|
||||
|
||||
<div class="doc_code">
|
||||
<pre>
|
||||
@ -189,15 +189,15 @@ cd llvm-gcc-4.2-objects</pre>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>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>).
|
||||
Additional languages can be appended to the --enable-languages switch,
|
||||
for example <tt>--enable-languages=ada,c,c++</tt>.
|
||||
for example <tt>--enable-languages=ada,c,c++</tt>.</p>
|
||||
|
||||
<div class="doc_code">
|
||||
<pre>../llvm-gcc-4.2/configure --prefix=/usr/local --enable-languages=ada,c --enable-checking --enable-llvm=$PWD/../llvm-objects --disable-shared --disable-bootstrap --disable-multilib</pre>
|
||||
</div>
|
||||
|
||||
If you have a multi-compiler setup, then you can configure like this:
|
||||
<p>If you have a multi-compiler setup, then you can configure like this:</p>
|
||||
<div class="doc_code">
|
||||
|
||||
<pre>
|
||||
@ -207,7 +207,7 @@ export CXX=<b>PATH_TO_C++_COMPILER</b>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>Build and install the compiler:
|
||||
<li><p>Build and install the compiler:</p>
|
||||
|
||||
<div class="doc_code">
|
||||
<pre>make
|
||||
|
Loading…
Reference in New Issue
Block a user