File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#! /bin/sh
22
3+ # find the name of the log file to process, it must not start with a dash.
4+ log_file=" v8.log"
5+ for arg in " $@ "
6+ do
7+ if ! expr " X${arg} " : " ^X-" > /dev/null; then
8+ log_file=${arg}
9+ fi
10+ done
11+
312tools_path=` cd $( dirname " $0 " ) ; pwd`
413if [ ! " $D8_PATH " ]; then
514 d8_public=` which d8`
918d8_exec=$D8_PATH /d8
1019
1120if [ ! -x $d8_exec ]; then
12- echo " d8 shell not found in $D8_PATH "
13- echo " To build, execute 'scons <flags> d8' from the V8 directory"
14- exit 1
21+ D8_PATH=` pwd` /out/native
22+ d8_exec=$D8_PATH /d8
1523fi
1624
25+ if [ ! -x $d8_exec ]; then
26+ d8_exec=` grep -m 1 -o ' ".*/d8"' $log_file | sed ' s/"//g' `
27+ fi
1728
18- # find the name of the log file to process, it must not start with a dash.
19- log_file=" v8.log"
20- for arg in " $@ "
21- do
22- if ! expr " X${arg} " : " ^X-" > /dev/null; then
23- log_file=${arg}
24- fi
25- done
26-
29+ if [ ! -x $d8_exec ]; then
30+ echo " d8 shell not found in $D8_PATH "
31+ echo " To build, execute 'make native' from the V8 directory"
32+ exit 1
33+ fi
2734
2835# nm spits out 'no symbols found' messages to stderr.
2936cat $log_file | $d8_exec $tools_path /splaytree.js $tools_path /codemap.js \
You can’t perform that action at this time.
0 commit comments