GN: Fix gn_build.py for Windows

R=johnmccutchan@google.com

Review URL: https://codereview.chromium.org/2407413003 .
This commit is contained in:
Zach Anderson 2016-10-12 10:08:23 -07:00
parent 7fd9df4d91
commit 86060cb0fb

View file

@ -15,7 +15,9 @@ DART_ROOT = os.path.realpath(os.path.join(SCRIPT_DIR, '..', '..'))
def main(argv):
os.environ["DART_USE_GN"] = "1"
gclient_result = subprocess.call(['gclient', 'runhooks'])
generate_buildfiles = os.path.join(
DART_ROOT, 'tools', 'generate_buildfiles.py')
gclient_result = subprocess.call(['python', generate_buildfiles])
if gclient_result != 0:
return gclient_result