summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-07-22 21:53:05 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-07-22 21:53:05 +0000
commit9be3ca0a1f5d8b820b222858519c6b7a964cc174 (patch)
tree42866393762b4880684750dda53873549681676e
parent71ce927d7b9b9c87ca80ea2270d7f0edfd50b6ef (diff)
downloadbcm5719-llvm-9be3ca0a1f5d8b820b222858519c6b7a964cc174.tar.gz
bcm5719-llvm-9be3ca0a1f5d8b820b222858519c6b7a964cc174.zip
Modernize llvm-top support.
llvm-svn: 40406
-rw-r--r--stacker/ModuleInfo.txt2
-rwxr-xr-xstacker/build-for-llvm-top.sh32
2 files changed, 9 insertions, 25 deletions
diff --git a/stacker/ModuleInfo.txt b/stacker/ModuleInfo.txt
index 5edf90ece43..c6603bc35f0 100644
--- a/stacker/ModuleInfo.txt
+++ b/stacker/ModuleInfo.txt
@@ -1,2 +1,4 @@
DepModule: llvm
BuildCmd: ./build-for-llvm-top.sh
+CleanCmd: make clean
+InstallCmd: make install
diff --git a/stacker/build-for-llvm-top.sh b/stacker/build-for-llvm-top.sh
index bc9a5569f7c..4f225cbd197 100755
--- a/stacker/build-for-llvm-top.sh
+++ b/stacker/build-for-llvm-top.sh
@@ -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
OpenPOWER on IntegriCloud