In ModuleInfo.txt, make sure that the script being executed can be
authorReid Spencer <rspencer@reidspencer.com>
Mon, 16 Jul 2007 22:25:13 +0000 (22:25 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Mon, 16 Jul 2007 22:25:13 +0000 (22:25 +0000)
found by prepending a .
In build-for-llvm-top.sh, dereference variables for exansion.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@39936 91177308-0d34-0410-b5e6-96231b3b80d8

ModuleInfo.txt
build-for-llvm-top.sh

index 113c1fff5d50436bb9a25cda07227c048a280b9a..bb88bb4b283640ced0b911be2fda61441f59ab6a 100644 (file)
@@ -1,2 +1,2 @@
 DepModule: 
-BuildCmd: build-for-llvm-top.sh
+BuildCmd: ./build-for-llvm-top.sh
index 13d90a416b80ad73cc045abfd190706b13631d65..3e4a4807cfc2ce415feb1696f9083d304c44df35 100644 (file)
@@ -24,8 +24,9 @@ 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-llvmgccdir=$PREFIX"
-  echo ./configure $config_options $config_opts
-  ./configure $config_options $config_opts
+  config_options="$config_options $config_opts"
+  echo ./configure $config_options
+  ./configure $config_options || (echo "Can't configure llvm" ; exit 1)
 fi
 
 echo make $build_opts '&&' make install $build_opts