Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(168)

Side by Side Diff: build_tools/run_without_cygwin.py

Issue 1000163003: Generate the icu data binaries at compile time instead of checking in binaries Base URL: https://chromium.googlesource.com/chromium/deps/icu.git@master
Patch Set: Fixed warnings in cross compiling Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « build_tools/filter_data_for_size_unittest.py ('k') | build_tools/write_icudata_lst.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #!/usr/bin/env python
2 # Copyright 2014 the V8 project authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
5
6 """This program wraps an arbitrary command since gn currently can only execute
7 scripts."""
8
9 import os
10 import subprocess
11 import sys
12
13 try:
14 env = os.environ
15 if "PATH" in env:
16 path = env["PATH"]
17 if "cygwin" in path:
18 # Needed to make pkgdata and similar work.
19 print("Removing cygwin from path.")
20 parts = path.split(";")
21 path = ";".join([x for x in parts if not "cygwin" in x])
22 env["PATH"] = path
23 res = subprocess.call(sys.argv[1:], env=env)
24 except Exception as e:
25 res = 1
26 print("%s" % e)
27
28 if res != 0:
29 print("In %s" % os.getcwd())
30 print("%s" % sys.argv)
31
32 sys.exit(res)
OLDNEW
« no previous file with comments | « build_tools/filter_data_for_size_unittest.py ('k') | build_tools/write_icudata_lst.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698