diff options
Diffstat (limited to 'deps/v8/tools/check-static-initializers.sh')
-rw-r--r-- | deps/v8/tools/check-static-initializers.sh | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/deps/v8/tools/check-static-initializers.sh b/deps/v8/tools/check-static-initializers.sh index 1103a97787..e6da828765 100644 --- a/deps/v8/tools/check-static-initializers.sh +++ b/deps/v8/tools/check-static-initializers.sh @@ -37,19 +37,14 @@ expected_static_init_count=3 v8_root=$(readlink -f $(dirname $BASH_SOURCE)/../) - -if [ -n "$1" ] ; then - d8="${v8_root}/$1" -else - d8="${v8_root}/d8" -fi +d8="${v8_root}/d8" if [ ! -f "$d8" ]; then - echo "d8 binary not found: $d8" + echo "Please build the project with SCons." exit 1 fi -static_inits=$(nm "$d8" | grep _GLOBAL_ | grep _I_ | awk '{ print $NF; }') +static_inits=$(nm "$d8" | grep _GLOBAL__I | awk '{ print $NF; }') static_init_count=$(echo "$static_inits" | wc -l) @@ -57,7 +52,4 @@ if [ $static_init_count -gt $expected_static_init_count ]; then echo "Too many static initializers." echo "$static_inits" exit 1 -else - echo "Static initializer check passed ($static_init_count initializers)." - exit 0 fi |