Ryan Dahl | 97c9745 | 2010-11-01 23:03:32 | [diff] [blame^] | 1 | #! /bin/sh |
Ryan Dahl | 5cf4cef | 2010-10-26 01:17:19 | [diff] [blame] | 2 | |
Ryan Dahl | 97c9745 | 2010-11-01 23:03:32 | [diff] [blame^] | 3 | # v8 doesn't like ccache |
4 | if [ ! -z "`echo $CC | grep ccache`" ]; then | ||||
5 | echo "Error: V8 doesn't like cache. Please set your CC env var to 'gcc'" | ||||
6 | echo " (ba)sh: export CC=gcc" | ||||
7 | exit 1 | ||||
8 | fi | ||||
Ryan Dahl | 5cf4cef | 2010-10-26 01:17:19 | [diff] [blame] | 9 | |
Ryan Dahl | 97c9745 | 2010-11-01 23:03:32 | [diff] [blame^] | 10 | CUR_DIR=$PWD |
11 | |||||
12 | #possible relative path | ||||
13 | WORKINGDIR=`dirname $0` | ||||
14 | cd "$WORKINGDIR" | ||||
15 | #abs path | ||||
16 | WORKINGDIR=`pwd` | ||||
17 | cd "$CUR_DIR" | ||||
18 | |||||
19 | "${WORKINGDIR}/tools/waf-light" --jobs=1 configure $* | ||||
20 | |||||
21 | exit $? |