2009-04-15 10:08:28 +02:00
|
|
|
#! /bin/sh
|
|
|
|
|
2009-11-22 23:32:53 +01: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 10:08:28 +02:00
|
|
|
CUR_DIR=$PWD
|
|
|
|
|
|
|
|
#possible relative path
|
|
|
|
WORKINGDIR=`dirname $0`
|
2010-05-11 19:25:27 +02:00
|
|
|
cd "$WORKINGDIR"
|
2009-04-15 10:08:28 +02:00
|
|
|
#abs path
|
|
|
|
WORKINGDIR=`pwd`
|
2010-05-11 19:25:27 +02:00
|
|
|
cd "$CUR_DIR"
|
2009-04-15 10:08:28 +02:00
|
|
|
|
2009-12-06 07:35:26 +01:00
|
|
|
"${WORKINGDIR}/tools/waf-light" --jobs=1 configure $*
|
2009-04-15 10:08:28 +02:00
|
|
|
|
|
|
|
exit $?
|