2011-08-10 01:19:48 +08:00
|
|
|
#! /bin/sh
|
2010-10-26 09:17:19 +08:00
|
|
|
|
2011-08-10 01:19:48 +08:00
|
|
|
# v8 doesn't like ccache
|
|
|
|
if [ ! -z "`echo $CC | grep ccache`" ]; then
|
2011-08-27 04:38:45 +08:00
|
|
|
echo "Error: V8 doesn't like ccache. Please set your CC env var to 'gcc'"
|
2011-08-10 01:19:48 +08:00
|
|
|
echo " (ba)sh: export CC=gcc"
|
|
|
|
exit 1
|
|
|
|
fi
|
2010-10-26 09:17:19 +08:00
|
|
|
|
2012-01-09 04:17:28 +08:00
|
|
|
if [ -z "$PYTHON" ]; then
|
|
|
|
PYTHON=python
|
|
|
|
fi
|
|
|
|
|
2011-08-10 01:19:48 +08:00
|
|
|
CUR_DIR=$PWD
|
2010-11-02 07:03:32 +08:00
|
|
|
|
2011-08-10 01:19:48 +08:00
|
|
|
#possible relative path
|
|
|
|
WORKINGDIR=`dirname $0`
|
|
|
|
cd "$WORKINGDIR"
|
|
|
|
#abs path
|
|
|
|
WORKINGDIR=`pwd`
|
|
|
|
cd "$CUR_DIR"
|
2010-11-02 07:03:32 +08:00
|
|
|
|
2012-01-09 04:17:28 +08:00
|
|
|
"$PYTHON" "${WORKINGDIR}/tools/waf-light" --jobs=1 configure $*
|
2010-11-02 07:03:32 +08:00
|
|
|
|
2011-08-10 01:19:48 +08:00
|
|
|
exit $?
|