From d30a971bf256d91ed94a5c77826f772da7b1301e Mon Sep 17 00:00:00 2001
From: Reid Spencer
Date: Thu, 27 Jul 2006 06:41:31 +0000
Subject: Correct a misunderstanding about cross-compiling. Anton's changes
don't cause LLVM to become a cross-compiler but rather cross-compile LLVM so
that it can execute on a platform other than the build host.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29339 91177308-0d34-0410-b5e6-96231b3b80d8
---
docs/GettingStarted.html | 21 +++++++++++++--------
1 file changed, 13 insertions(+), 8 deletions(-)
(limited to 'docs/GettingStarted.html')
diff --git a/docs/GettingStarted.html b/docs/GettingStarted.html
index 472ee10..273c28d 100644
--- a/docs/GettingStarted.html
+++ b/docs/GettingStarted.html
@@ -31,7 +31,7 @@
Install the GCC Front End
Local LLVM Configuration
Compiling the LLVM Suite Source Code
- Compiling LLVM As A Cross-Compiler
+ Cross-Compiling LLVM
The Location of LLVM Object Files
Optional Configuration Items
@@ -989,15 +989,17 @@ that directory that is out of date.
-
LLVM can be built as a cross-compiler, however some additional steps are
- required.1 To build a cross-compiler, use
+
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. 1 To cross-compile LLVM, use
these instructions:
- - Configure and build LLVM Suite as a native compiler. You will need
+
- Configure and build LLVM as a native compiler. You will need
just TableGen from that build.
- If you have $LLVM_OBJ_ROOT=$LLVM_SRC_ROOT just execute
@@ -1008,15 +1010,18 @@ that directory that is out of date.
- Copy the TableGen binary to somewhere safe (out of your build tree).
- - Configure LLVM to build as a cross-compiler. To do this, supply the
+
- Configure LLVM to build with a cross-compiler. To do this, supply the
configure script with --build and --host options that
- are different. The values of these options must be legal target triples and
- should specify a processor for which LLVM supports code generation.
+ are different. The values of these options must be legal target triples
+ that your GCC compiler supports.
- Put the saved TableGen executable into the
into $LLVM_OBJ_ROOT/{BUILD_TYPE}/bin directory (e.g. into
.../Release/bin for a Release build).
- Build LLVM as usual.
+
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
+ (--host option).
Notes: