summaryrefslogtreecommitdiffstats
path: root/tools/gypv8sh.py
diff options
context:
space:
mode:
authorjochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-22 11:39:51 +0000
committerjochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-22 11:39:51 +0000
commitb6ae0be1502e81ad3d9b91bb613279a703761fe4 (patch)
tree0707dbdb46b1fd76fb1efa7fb9d0a28d95232a82 /tools/gypv8sh.py
parent6e24a58bb3d55725cd1eef66f869cd1115358371 (diff)
downloadchromium_src-b6ae0be1502e81ad3d9b91bb613279a703761fe4.zip
chromium_src-b6ae0be1502e81ad3d9b91bb613279a703761fe4.tar.gz
chromium_src-b6ae0be1502e81ad3d9b91bb613279a703761fe4.tar.bz2
Pass the location of the icu datafile to d8 if its available
BUG=372300 R=thakis@chromium.org,scr@chromium.org Review URL: https://codereview.chromium.org/298703004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@272164 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/gypv8sh.py')
-rwxr-xr-xtools/gypv8sh.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/gypv8sh.py b/tools/gypv8sh.py
index 918368c..7141f06 100755
--- a/tools/gypv8sh.py
+++ b/tools/gypv8sh.py
@@ -33,9 +33,13 @@ def main ():
parser.error('all arguments are required.')
(v8_shell, mock_js, axs_testing_js, test_api, js2webui, test_type,
inputfile, inputrelfile, cxxoutfile, jsoutfile) = args
+ cmd = [v8_shell]
+ icudatafile = os.path.join(os.path.dirname(v8_shell), 'icudtl.dat')
+ if os.path.exists(icudatafile):
+ cmd.extend(['--icu-data-file=%s' % icudatafile])
arguments = [js2webui, inputfile, inputrelfile, cxxoutfile, test_type]
- cmd = [v8_shell, '-e', "arguments=" + json.dumps(arguments), mock_js,
- axs_testing_js, test_api, js2webui]
+ cmd.extend(['-e', "arguments=" + json.dumps(arguments), mock_js,
+ axs_testing_js, test_api, js2webui])
if opts.verbose or opts.impotent:
print cmd
if not opts.impotent: