[llvm-commits] [stacker] r40406 - in /stacker/trunk: ModuleInfo.txt build-for-llvm-top.sh
Reid Spencer
rspencer at reidspencer.com
Sun Jul 22 14:53:05 PDT 2007
Author: reid
Date: Sun Jul 22 16:53:05 2007
New Revision: 40406
URL: http://llvm.org/viewvc/llvm-project?rev=40406&view=rev
Log:
Modernize llvm-top support.
Modified:
stacker/trunk/ModuleInfo.txt
stacker/trunk/build-for-llvm-top.sh
Modified: stacker/trunk/ModuleInfo.txt
URL: http://llvm.org/viewvc/llvm-project/stacker/trunk/ModuleInfo.txt?rev=40406&r1=40405&r2=40406&view=diff
==============================================================================
--- stacker/trunk/ModuleInfo.txt (original)
+++ stacker/trunk/ModuleInfo.txt Sun Jul 22 16:53:05 2007
@@ -1,2 +1,4 @@
DepModule: llvm
BuildCmd: ./build-for-llvm-top.sh
+CleanCmd: make clean
+InstallCmd: make install
Modified: stacker/trunk/build-for-llvm-top.sh
URL: http://llvm.org/viewvc/llvm-project/stacker/trunk/build-for-llvm-top.sh?rev=40406&r1=40405&r2=40406&view=diff
==============================================================================
--- stacker/trunk/build-for-llvm-top.sh (original)
+++ stacker/trunk/build-for-llvm-top.sh Sun Jul 22 16:53:05 2007
@@ -1,35 +1,17 @@
#!/bin/sh
-is_debug=1
-for arg in "$@" ; do
- case "$arg" in
- LLVM_TOP=*)
- LLVM_TOP=`echo "$arg" | sed -e 's/LLVM_TOP=//'`
- ;;
- PREFIX=*)
- PREFIX=`echo "$arg" | sed -e 's/PREFIX=//'`
- ;;
- ENABLE_OPTIMIZED=1)
- is_debug=0
- ;;
- *=*)
- build_opts="$build_opts $arg"
- ;;
- --*)
- config_opts="$config_opts $arg"
- ;;
- esac
-done
+. ../library.sh
+
+process_arguments "$@"
# 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" ; then
# We must configure so build a list of configure options
- config_options="--prefix=$PREFIX --with-llvmsrc=$LLVM_TOP/llvm"
- config_options="$config_options --with-llvmobj=$LLVM_TOP/llvm"
- echo ./configure $config_options $config_opts
- ./configure $config_options $config_opts
+ config_options="--prefix=$PREFIX --with-llvm-top=$LLVM_TOP"
+ echo ./configure $config_options
+ ./configure $config_options
fi
-make $build_opts && make install $build_opts
+make
More information about the llvm-commits
mailing list