[llvm-commits] [llvm-gcc-4.2] r80400 - /llvm-gcc-4.2/trunk/README.LLVM
Eric Christopher
echristo at apple.com
Fri Aug 28 15:26:58 PDT 2009
Author: echristo
Date: Fri Aug 28 17:26:57 2009
New Revision: 80400
URL: http://llvm.org/viewvc/llvm-project?rev=80400&view=rev
Log:
Update for Snow Leopard and include warning comment about not ignoring
TRIPLEs and why.
Modified:
llvm-gcc-4.2/trunk/README.LLVM
Modified: llvm-gcc-4.2/trunk/README.LLVM
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/README.LLVM?rev=80400&r1=80399&r2=80400&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/README.LLVM (original)
+++ llvm-gcc-4.2/trunk/README.LLVM Fri Aug 28 17:26:57 2009
@@ -17,7 +17,7 @@
First Step: Build LLVM
//===----------------------------------------------------------------------===//
-First, check out LLVM from Subversion, then build it in optimized mode (a
+First, check out LLVM from Subversion, then build it in optimized mode (a
Release build, as opposed to a Debug one)):
make ENABLE_OPTIMIZED=1
@@ -56,7 +56,7 @@
This may be host compiler version specific.
If you get an error message building llvm-gcc like this:
- ...gcc/libgcc_s.so.1: version `GCC_4.2.0' not found (required by
+ ...gcc/libgcc_s.so.1: version `GCC_4.2.0' not found (required by
/usr/lib/libstdc++.so.6)
you are probably hitting http://llvm.org/PR896. Please reconfigure with the
@@ -77,25 +77,31 @@
Next, decide if you want Objective-C support. If so:
EXTRALANGS=,objc,obj-c++
-
+
If building for Darwin/PPC:
TRIPLE=powerpc-apple-darwin8 (Tiger)
TRIPLE=powerpc-apple-darwin9 (Leopard)
-
+
If building for Darwin/X86 (32- and 64-bit support):
TARGETOPTIONS='--with-arch=nocona --with-tune=generic'
TRIPLE=i686-apple-darwin8 (Tiger)
TRIPLE=i686-apple-darwin9 (Leopard)
-
+ TRIPLE=i686-apple-darwin10 (Snow Leopard)
+
If building for Darwin/X86 (32-bit support only):
TARGETOPTIONS='--with-arch=pentium-m --with-tune=prescott --disable-multilib'
TRIPLE=i686-apple-darwin8 (Tiger)
TRIPLE=i686-apple-darwin9 (Leopard)
+ TRIPLE=i686-apple-darwin10 (Snow Leopard)
+
+The Triples are very important, otherwise your llvm-gcc/g++ may not be able
+to find the header files below.
In addition, you *must* specify the following options to configure:
- --with-gxx-include-dir=/usr/include/c++/4.0.0
- --build=$TRIPLE --host=$TRIPLE --target=$TRIPLE
+ --with-gxx-include-dir=/usr/include/c++/4.0.0 (Leopard)
+ --with-gxx-include-dir=/usr/include/c++/4.2.1 (Snow Leopard)
+ --build=$TRIPLE --host=$TRIPLE --target=$TRIPLE
With these options, llvm-gcc will build the same way as Apple's system GCC.
@@ -116,17 +122,17 @@
If you want LLVM to include an identifying marker in the --version output,
build llvm-gcc with LLVM_VERSION_INFO=XXX. For example, to build the LLVM
2.5 Release front-end, use 'make LLVM_VERSION_INFO=2.5'. This will cause the
- front-end to print: "gcc version 4.2.1 (Based on Apple Inc. build 5555)
+ front-end to print: "gcc version 4.2.1 (Based on Apple Inc. build 5555)
(LLVM build 2.5)" as the version number.
-
+
BUILDOPTIONS=LLVM_VERSION_INFO=whatever
-
+
//===----------------------------------------------------------------------===//
Configure, Build, Install, Test
//===----------------------------------------------------------------------===//
-Next, make an object directory and install directory as siblings to the
+Next, make an object directory and install directory as siblings to the
llvm-gcc source directory, and build and install llvm-gcc:
$ mkdir obj
@@ -152,7 +158,7 @@
//===-----------------------
-Note that if you prefer to bootstrap llvm-gcc (so that the final llvm-gcc
+Note that if you prefer to bootstrap llvm-gcc (so that the final llvm-gcc
executables have been compiled with llvm-gcc itself), replace "make" with
"make bootstrap".
More information about the llvm-commits
mailing list