[llvm-commits] [llvm-gcc-4.2] r50806 - /llvm-gcc-4.2/trunk/README.LLVM
Tanya Lattner
tonic at nondot.org
Tue May 6 23:53:30 PDT 2008
Author: tbrethou
Date: Wed May 7 01:53:30 2008
New Revision: 50806
URL: http://llvm.org/viewvc/llvm-project?rev=50806&view=rev
Log:
Update readme.
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=50806&r1=50805&r2=50806&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/README.LLVM (original)
+++ llvm-gcc-4.2/trunk/README.LLVM Wed May 7 01:53:30 2008
@@ -82,13 +82,6 @@
TARGETOPTIONS=--with-arch=pentium-m --with-tune=prescott --disable-multilib
TRIPLE=i686-apple-darwin8
-Building for Darwin/Mac OS X is significantly different than building for other
-targets. Darwin considers libstdc++ to be part of the operating system, not as
-part of the compiler. As such, you should *remove* the libstdc++-v3 directory
-from the llvm-gcc4 source directory before configuring it:
-
- rm -rf llvm-gcc4-x.y.source/libstdc++-v3
-
In addition, you *must* specify the following options to configure:
--with-gxx-include-dir=/usr/include/c++/4.0.0
@@ -105,9 +98,9 @@
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
- 1.9 Release front-end, use 'make LLVM_VERSION_INFO=1.9'. This will cause the
- front-end to print: "gcc (GCC) 4.0.1 LLVM (Apple Computer, Inc. build 1.9)"
- as the version number.
+ 2.3 Release front-end, use 'make LLVM_VERSION_INFO=2.3'. This will cause the
+ front-end to print: "gcc version 4.2.1 (Based on Apple Inc. build 5555)
+ (LLVM build 2.3)" as the version number.
BUILDOPTIONS=LLVM_VERSION_INFO=whatever
@@ -122,7 +115,7 @@
$ mkdir obj
$ mkdir install
$ cd obj
-$ ../llvm-gcc4-x.y.source/configure --prefix=`pwd`/../install \
+$ ../llvm-gcc4-x.y.source/configure --prefix=`pwd`/../install --program-prefix=llvm- \
--enable-llvm=$LLVMOBJDIR --enable-languages=c,c++$EXTRALANGS $TARGETOPTIONS
$ make $BUILDOPTIONS
$ make install
@@ -136,20 +129,11 @@
executables have been compiled with llvm-gcc itself), replace "make" with
"make bootstrap".
-Finally, add symlinks for llvm-gcc and llvm-g++ to your path:
-
-$ su
-$ cd /usr/local/bin
-$ ln -s <llvmgccdir>/install/bin/gcc llvm-gcc
-$ ln -s <llvmgccdir>/install/bin/g++ llvm-g++
-$ exit
-
You should now have something like:
$ llvm-gcc -v
...
-gcc version 4.0.1 LLVM (Apple Computer, Inc. build 5400)
-
+gcc version 4.2.1 (Based on Apple Inc. build 5555) (LLVM build)
** NOTE: If the -v line above doesn't include "LLVM", you probably mistyped the
--enable-llvm=xxx line and have a normal gcc, not an llvm-gcc.
More information about the llvm-commits
mailing list