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 | c8c743668bb4ef113c6b6ffa9ad4e1250c7af5f4 (patch) | |
tree | 9d1550678b728e3febb86a8da791203e474d0ac0 /docs/GettingStarted.html | |
parent | 417be400d742d9d7b13dadbbd5ff421e060e7292 (diff) | |
download | external_llvm-c8c743668bb4ef113c6b6ffa9ad4e1250c7af5f4.zip external_llvm-c8c743668bb4ef113c6b6ffa9ad4e1250c7af5f4.tar.gz external_llvm-c8c743668bb4ef113c6b6ffa9ad4e1250c7af5f4.tar.bz2 |
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 5dd39c2..87a143f 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> <!-- ======================================================================= --> |