[llvm-commits] [support] r39961 - in /support/trunk: ModuleInfo.txt build-for-llvm-top.sh

Reid Spencer rspencer at reidspencer.com
Mon Jul 16 22:09:37 PDT 2007


Author: reid
Date: Tue Jul 17 00:09:37 2007
New Revision: 39961

URL: http://llvm.org/viewvc/llvm-project?rev=39961&view=rev
Log:
Changes to get the support module building from llvm-top

Modified:
    support/trunk/ModuleInfo.txt
    support/trunk/build-for-llvm-top.sh

Modified: support/trunk/ModuleInfo.txt
URL: http://llvm.org/viewvc/llvm-project/support/trunk/ModuleInfo.txt?rev=39961&r1=39960&r2=39961&view=diff

==============================================================================
--- support/trunk/ModuleInfo.txt (original)
+++ support/trunk/ModuleInfo.txt Tue Jul 17 00:09:37 2007
@@ -1,2 +1,2 @@
 DepModule:
-BuildCmd: echo "Support module doesn't build yet"
+BuildCmd: ./build-for-llvm-top.sh

Modified: support/trunk/build-for-llvm-top.sh
URL: http://llvm.org/viewvc/llvm-project/support/trunk/build-for-llvm-top.sh?rev=39961&r1=39960&r2=39961&view=diff

==============================================================================
--- support/trunk/build-for-llvm-top.sh (original)
+++ support/trunk/build-for-llvm-top.sh Tue Jul 17 00:09:37 2007
@@ -1,10 +1,5 @@
 #!/bin/sh
 
-# This includes the Bourne shell library from llvm-top. Since this file is
-# generally only used when building from llvm-top, it is safe to assume that
-# llvm is checked out into llvm-top in which case .. just works.
-. ../library.sh
-
 is_debug=1
 for arg in "$@" ; do
   case "$arg" in
@@ -14,15 +9,26 @@
     PREFIX=*)
       PREFIX=`echo "$arg" | sed -e 's/PREFIX=//'`
       ;;
+    MODULE=*)
+      MODULE=`echo "$arg" | sed -e 's/MODULE=//'`
+      ;;
     *=*)
       build_opts="$build_opts $arg"
       ;;
     --*)
       config_opts="$config_opts $arg"
       ;;
+    *)
+      die 1 "Unrecognized option: $arg"
+      ;;
   esac
 done
 
+# This includes the Bourne shell library from llvm-top. Since this file is
+# generally only used when building from llvm-top, it is safe to assume that
+# llvm is checked out into llvm-top in which case .. just works.
+. $LLVM_TOP/library.sh
+
 # See if we have previously been configured by sensing the presense
 # of the config.status scripts
 if test ! -x "config.status" ; then
@@ -34,6 +40,6 @@
   ./configure $config_options || (echo "Can't configure llvm" ; exit 1)
 fi
 
-msg 0 Building $module with:
-msg 0 "  make" $build_opts tools-only
-make $build_opts tools-only
+msg 0 Building $MODULE with:
+msg 0 "  make" $build_opts
+make $build_opts





More information about the llvm-commits mailing list