diff options
author | Jim Grosbach <grosbach@apple.com> | 2009-04-17 17:25:16 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2009-04-17 17:25:16 +0000 |
commit | 5bea822a0c21d46b2ee539a38474735b2617365d (patch) | |
tree | 9d1550678b728e3febb86a8da791203e474d0ac0 /docs/GettingStarted.html | |
parent | 5b7dfbd89a0a0b7b59603bf9eb0f3f58534b4dd5 (diff) |
Update information on canadian cross builds
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@69358 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/GettingStarted.html')
-rw-r--r-- | docs/GettingStarted.html | 45 |
1 files changed, 9 insertions, 36 deletions
diff --git a/docs/GettingStarted.html b/docs/GettingStarted.html index 5dd39c2230..87a143fd0e 100644 --- a/docs/GettingStarted.html +++ b/docs/GettingStarted.html @@ -1036,43 +1036,16 @@ that directory that is out of date.</p> </div> <div class="doc_text"> - <p>It is possible to cross-compile LLVM. That is, you can create LLVM - executables and libraries for a platform different than the one one which you - are compiling. To do this, a few additional steps are - required. <sup><a href="#ccn_1">1</a></sup> To cross-compile LLVM, use - these instructions:</p> - <ol> - <li>Configure and build LLVM as a native compiler. You will need - just <tt>TableGen</tt> from that build. - <ul> - <li>If you have <tt>$LLVM_OBJ_ROOT=$LLVM_SRC_ROOT</tt> just execute - <tt>make -C utils/TableGen</tt> after configuring.</li> - <li>Otherwise you will need to monitor building process and terminate - it just after <tt>TableGen</tt> was built.</li> - </ul> - </li> - <li>Copy the TableGen binary to somewhere safe (out of your build tree). - </li> - <li>Configure LLVM to build with a cross-compiler. To do this, supply the - configure script with <tt>--build</tt> and <tt>--host</tt> options that - are different. The values of these options must be legal target triples - that your GCC compiler supports.</li> - <li>Put the saved <tt>TableGen</tt> executable into the - into <tt>$LLVM_OBJ_ROOT/{BUILD_TYPE}/bin</tt> directory (e.g. into - <tt>.../Release/bin</tt> for a Release build).</li> - <li>Build LLVM as usual.</li> - </ol> - <p>The result of such a build will produce executables that are not executable - on your build host (--build option) but can be executed on your compile host + <p>It is possible to cross-compile LLVM itself. That is, you can create LLVM + executables and libraries to be hosted on a platform different from the + platform where they are build (a Canadian Cross build). To configure a + cross-compile, supply the configure script with <tt>--build</tt> and + <tt>--host</tt> options that are different. The values of these options must + be legal target triples that your GCC compiler supports.</p> + + <p>The result of such a build is executables that are not runnable on + on the build host (--build option) but can be executed on the compile host (--host option).</p> - <p><b>Notes:</b></p> - <div class="doc_notes"> - <ol> - <li><a name="ccn_1">Cross-compiling</a> was tested only with Linux as - build platform and Windows as host using mingw32 cross-compiler. Other - combinations have not been tested.</li> - </ol> - </div> </div> <!-- ======================================================================= --> |