Skip to content

Commit f69c0b0

Browse files
author
yangguo@chromium.org
committed
Adapt linux-tick-processor to GYP build.
Review URL: http://codereview.chromium.org/8038019 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@9429 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
1 parent d554977 commit f69c0b0

1 file changed

Lines changed: 19 additions & 12 deletions

File tree

tools/linux-tick-processor

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
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+
312
tools_path=`cd $(dirname "$0");pwd`
413
if [ ! "$D8_PATH" ]; then
514
d8_public=`which d8`
@@ -9,21 +18,19 @@ fi
918
d8_exec=$D8_PATH/d8
1019

1120
if [ ! -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
1523
fi
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.
2936
cat $log_file | $d8_exec $tools_path/splaytree.js $tools_path/codemap.js \

0 commit comments

Comments
 (0)