unstick r40406

Revision 40406

Date:
2007/07/22 21:53:05
Author:
reid
Revision Log:
Modernize llvm-top support.
Files:

Legend:

 
Added
 
Removed
 
Modified
  • stacker/trunk/build-for-llvm-top.sh

     
    1 1 #!/bin/sh
    2 2
    3 is_debug=1
    4 for arg in "$@" ; do
    5 case "$arg" in
    6 LLVM_TOP=*)
    7 LLVM_TOP=`echo "$arg" | sed -e 's/LLVM_TOP=//'`
    8 ;;
    9 PREFIX=*)
    10 PREFIX=`echo "$arg" | sed -e 's/PREFIX=//'`
    11 ;;
    12 ENABLE_OPTIMIZED=1)
    13 is_debug=0
    14 ;;
    15 *=*)
    16 build_opts="$build_opts $arg"
    17 ;;
    18 --*)
    19 config_opts="$config_opts $arg"
    20 ;;
    21 esac
    22 done
    3 . ../library.sh
    23 4
    5 process_arguments "$@"
    6
    24 7 # See if we have previously been configured by sensing the presense
    25 8 # of the config.status scripts
    26 9 config_status="$build_dir/config.status"
    27 10 if test ! -d "$config_status" ; then
    28 11 # We must configure so build a list of configure options
    29 config_options="--prefix=$PREFIX --with-llvmsrc=$LLVM_TOP/llvm"
    30 config_options="$config_options --with-llvmobj=$LLVM_TOP/llvm"
    31 echo ./configure $config_options $config_opts
    32 ./configure $config_options $config_opts
    12 config_options="--prefix=$PREFIX --with-llvm-top=$LLVM_TOP"
    13 echo ./configure $config_options
    14 ./configure $config_options
    33 15 fi
    34 16
    35 make $build_opts && make install $build_opts
    17 make
  • stacker/trunk/ModuleInfo.txt

     
    1 1 DepModule: llvm
    2 2 BuildCmd: ./build-for-llvm-top.sh
    3 CleanCmd: make clean
    4 InstallCmd: make install