[llvm-commits] [llvm-gcc-4.0] r40370 - in /llvm-gcc-4.0/trunk: ModuleInfo.txt build-for-llvm-top.sh
Reid Spencer
rspencer at reidspencer.com
Sat Jul 21 01:35:54 PDT 2007
Author: reid
Date: Sat Jul 21 03:35:53 2007
New Revision: 40370
URL: http://llvm.org/viewvc/llvm-project?rev=40370&view=rev
Log:
Prepare llvm-gcc-4.0 for building with llvm-top.
Added:
llvm-gcc-4.0/trunk/build-for-llvm-top.sh
Modified:
llvm-gcc-4.0/trunk/ModuleInfo.txt
Modified: llvm-gcc-4.0/trunk/ModuleInfo.txt
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.0/trunk/ModuleInfo.txt?rev=40370&r1=40369&r2=40370&view=diff
==============================================================================
--- llvm-gcc-4.0/trunk/ModuleInfo.txt (original)
+++ llvm-gcc-4.0/trunk/ModuleInfo.txt Sat Jul 21 03:35:53 2007
@@ -1,4 +1,4 @@
-DepModule: llvm
-BuildCmd: echo llvm-gcc-4.0 isn't in the repository yet (cannot build)
-CleanCmd: echo llvm-gcc-4.0 isn't in the repository yet (cannot clean)
-InstallCmd: echo llvm-gcc-4.0 isn't in the repository yet (cannot install)
+DepModule: llvm
+BuildCmd: ./build-for-llvm-top.sh
+CleanCmd: cd ../build.llvm-gcc-4.0 ; make clean
+InstallCmd: cd ../build.llvm-gcc-4.0 ; make install
Added: llvm-gcc-4.0/trunk/build-for-llvm-top.sh
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.0/trunk/build-for-llvm-top.sh?rev=40370&view=auto
==============================================================================
--- llvm-gcc-4.0/trunk/build-for-llvm-top.sh (added)
+++ llvm-gcc-4.0/trunk/build-for-llvm-top.sh Sat Jul 21 03:35:53 2007
@@ -0,0 +1,43 @@
+#!/bin/sh
+# build script for llvm-gcc-4.0
+#
+# This file was developed by Reid Spencer and is distributed under the
+# University of Illinois Open Source License. See LICENSE.TXT for details.
+#
+#===------------------------------------------------------------------------===#
+#
+
+# Get the llvm-top library
+. ../library.sh
+
+# Process the arguments
+process_arguments "$@"
+
+# First, see if the build directory is there. If not, create it.
+build_dir="$LLVM_TOP/build.llvm-gcc-4.0"
+if test ! -d "$build_dir" ; then
+ mkdir -p "$build_dir"
+fi
+
+# Next, see if we have previously been configured by sensing the presense
+# of the config.status scripts
+config_status="$build_dir/config.status"
+if test ! -d "$config_status" -o "$config_status" -ot "$0" ; then
+ # We must configure so build a list of configure options
+ config_options="--prefix=$PREFIX --enable-llvm=$LLVM_TOP/llvm "
+ config_options="$config_options --program-prefix=llvm-"
+ config_options="$config_options --enable-languages=c,c++"
+ if test -n "$ENABLE_OPTIMIZED" ; then
+ config_options="$config_options --enable-checking --enable-libstdcxx-debug"
+ fi
+ host=`./config.guess`
+ if test ! -z `echo "$host" | grep 'linux'` ; then
+ config_options="$config_options --disable-shared"
+ fi
+ config_options="$config_options $config_opts"
+ src_dir=`pwd`
+ cd "$build_dir"
+ echo $src_dir/configure $config_options
+ $src_dir/configure $config_options
+fi
+make
More information about the llvm-commits
mailing list