2009-04-15 16:08:28 +08:00
|
|
|
#! /bin/sh
|
|
|
|
|
2009-11-23 06:32:53 +08:00
|
|
|
# v8 doesn't like ccache
|
|
|
|
if [ ! -z "`echo $CC | grep ccache`" ]; then
|
|
|
|
echo "Error: V8 doesn't like cache. Please set your CC env var to 'gcc'"
|
|
|
|
echo " (ba)sh: export CC=gcc"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2009-04-15 16:08:28 +08:00
|
|
|
CUR_DIR=$PWD
|
|
|
|
|
|
|
|
#possible relative path
|
|
|
|
WORKINGDIR=`dirname $0`
|
|
|
|
cd $WORKINGDIR
|
|
|
|
#abs path
|
|
|
|
WORKINGDIR=`pwd`
|
|
|
|
cd $CUR_DIR
|
|
|
|
|
2009-12-06 14:35:26 +08:00
|
|
|
"${WORKINGDIR}/tools/waf-light" --jobs=1 configure $*
|
2009-04-15 16:08:28 +08:00
|
|
|
|
|
|
|
exit $?
|