llvm.org GIT mirror llvm / 09d0594
Prepare for building from llvm-top. Unfortunately, this doesn't work because of the cyclic depndency between llvm and llvm-gcc-4-0. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@39910 91177308-0d34-0410-b5e6-96231b3b80d8 Reid Spencer 12 years ago
2 changed file(s) with 34 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
None DepModule:
1 ConfigCmd: ./configure --prefix=@INSTALL_PREFIX@ --with-llvmgccdir=@LLVM_TOP@/install
2 ConfigFile: ./config.status
3 BuildCmd: make build-for-llvm-top LLVM_TOP=@LLVM_TOP@
0 DepModule: llvm-gcc-4-0
1 BuildCmd: build-for-llvm-top.sh
0 #!/bin/sh
1
2 is_debug=1
3 for arg in "$@" ; do
4 case "$arg" in
5 LLVM_TOP=*)
6 LLVM_TOP=`echo "$arg" | sed -e 's/LLVM_TOP=//'`
7 ;;
8 PREFIX=*)
9 PREFIX=`echo "$arg" | sed -e 's/PREFIX=//'`
10 ;;
11 *=*)
12 build_opts="$build_opts $arg"
13 ;;
14 --*)
15 config_opts="$config_opts $arg"
16 ;;
17 esac
18 done
19
20 # See if we have previously been configured by sensing the presense
21 # of the config.status scripts
22 config_status="$build_dir/config.status"
23 if test ! -d "$config_status" ; then
24 # We must configure so build a list of configure options
25 config_options="--prefix=$PREFIX --with-llvmgccdir=$PREFIX"
26 echo ./configure $config_options $config_opts
27 ./configure $config_options $config_opts
28 fi
29
30 echo make $build_opts '&&' make install $build_opts
31 make $build_opts && make install $build_opts