mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-05-13 17:38:39 +00:00
Describe both objdir==srcdir and objdir!=srcdir methods of building LLVM
libraries and tools. Thanks to Henrik Bach for this suggestion. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19204 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
45e88d68b3
commit
e0a7dddf39
@ -82,11 +82,7 @@ not with:<br/>
|
|||||||
</p></div>
|
</p></div>
|
||||||
|
|
||||||
<!--=========================================================================-->
|
<!--=========================================================================-->
|
||||||
<div class="doc_subsection">
|
<div class="doc_subsection"><a name="aix">Building under AIX</a></div>
|
||||||
<a name="aix">Building under AIX</a>
|
|
||||||
</div>
|
|
||||||
<!--=========================================================================-->
|
|
||||||
|
|
||||||
<div class="doc_text">
|
<div class="doc_text">
|
||||||
<p>If you are building LLVM and the GCC front-end under AIX, do NOT use GNU
|
<p>If you are building LLVM and the GCC front-end under AIX, do NOT use GNU
|
||||||
Binutils. They are not stable under AIX and may produce incorrect and/or
|
Binutils. They are not stable under AIX and may produce incorrect and/or
|
||||||
@ -103,17 +99,26 @@ invalid code. Instead, use the system assembler and linker.
|
|||||||
<div class="doc_text">
|
<div class="doc_text">
|
||||||
<p>
|
<p>
|
||||||
<ol>
|
<ol>
|
||||||
<li><p>Configure and build the LLVM libraries and tools using:</p>
|
<li><p>Configure and build the LLVM libraries and tools. There are two ways to
|
||||||
<pre>
|
do this: either with <i>objdir</i> == <i>srcdir</i> or not. It is recommended
|
||||||
|
that <i>srcdir</i> not be the same as <i>objdir</i>:</p>
|
||||||
|
<ul>
|
||||||
|
<li>With <i>objdir</i> != <i>srcdir</i>:<pre>
|
||||||
|
% cd <i>objdir</i>
|
||||||
|
% <i>srcdir</i>/configure --prefix=/some/path/you/can/install/to [options...]
|
||||||
|
% gmake tools-only
|
||||||
|
</pre></li>
|
||||||
|
<li>With <i>objdir</i> == <i>srcdir</i>:<pre>
|
||||||
% cd llvm
|
% cd llvm
|
||||||
% ./configure --prefix=/some/path/you/can/install/to [options...]
|
% ./configure --prefix=/some/path/you/can/install/to [options...]
|
||||||
% gmake tools-only
|
% gmake tools-only
|
||||||
</pre>
|
</pre></li>
|
||||||
<p>This will build all of the LLVM tools and libraries. The <tt>--prefix</tt>
|
</ul>
|
||||||
option defaults to /usr/local (per configure standards) but unless you are a
|
<p>This will build all of the LLVM tools and libraries. The <tt>--prefix</tt>
|
||||||
system administrator, you probably won't be able to install LLVM there because
|
option defaults to /usr/local (per configure standards) but unless you are a
|
||||||
of permissions. Specify a path into which LLVM can be installed (e.g.
|
system administrator, you probably won't be able to install LLVM there because
|
||||||
<tt>--prefix=/home/user/llvm</tt>).</p>
|
of permissions. Specify a path into which LLVM can be installed (e.g.
|
||||||
|
<tt>--prefix=/home/user/llvm</tt>).</p>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li><p>Add the directory containing the tools to your PATH.</p>
|
<li><p>Add the directory containing the tools to your PATH.</p>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user