blob: a5ddb79b8038dae2c6d7dbe371d35ae3344e9c79 [file] [log] [blame]
Reid Spencer09d05942007-07-16 08:05:18 +00001#!/bin/sh
2
Reid Spencer8d1b8f72007-07-17 07:17:02 +00003# This includes the Bourne shell library from llvm-top. Since this file is
4# generally only used when building from llvm-top, it is safe to assume that
5# llvm is checked out into llvm-top in which case .. just works.
6. ../library.sh
7
8# Process the options passed in to us by the build script into standard
9# variables.
10process_builder_args "$@"
Reid Spencer09d05942007-07-16 08:05:18 +000011
12# See if we have previously been configured by sensing the presense
13# of the config.status scripts
Reid Spencer3b523082007-07-16 22:54:42 +000014if test ! -x "config.status" ; then
Reid Spencer09d05942007-07-16 08:05:18 +000015 # We must configure so build a list of configure options
16 config_options="--prefix=$PREFIX --with-llvmgccdir=$PREFIX"
Reid Spencer8d1b8f72007-07-17 07:17:02 +000017 config_options="$config_options $OPTIONS_DASH $OPTIONS_DASH_DASH"
18 msg 0 Configuring $module with:
19 msg 0 " ./configure" $config_options
Reid Spencer8c88b6d2007-07-16 22:25:13 +000020 ./configure $config_options || (echo "Can't configure llvm" ; exit 1)
Reid Spencer09d05942007-07-16 08:05:18 +000021fi
22
Reid Spencer8d1b8f72007-07-17 07:17:02 +000023msg 0 Building $module with:
24msg 0 " make" $OPTIONS_ASSIGN tools-only
25make $OPTIONS_ASSIGN tools-only