632b744046
Ryan landed a fix for #28200 so we can try to land this again. Tests on Debug builds will be slower until https://codereview.chromium.org/2614003003/ lands, but we didn't notice an uptick in bot timeouts when we tried this before, so I suspect the bots will continue to be unaffected. R=whesse@google.com Review-Url: https://codereview.chromium.org/2617803003 .
32 lines
917 B
Python
32 lines
917 B
Python
#!/usr/bin/env python
|
|
#
|
|
# Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
|
|
# for details. All rights reserved. Use of this source code is governed by a
|
|
# BSD-style license that can be found in the LICENSE file.
|
|
|
|
import os
|
|
import os.path
|
|
import shutil
|
|
import sys
|
|
import subprocess
|
|
|
|
SCRIPT_DIR = os.path.dirname(sys.argv[0])
|
|
DART_ROOT = os.path.realpath(os.path.join(SCRIPT_DIR, '..', '..'))
|
|
|
|
def main(argv):
|
|
os.environ["DART_USE_GYP"] = "1"
|
|
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
|
|
|
|
build_py = os.path.join(DART_ROOT, 'tools', 'build.py')
|
|
build_result = subprocess.call(['python', build_py] + argv[1:])
|
|
if build_result != 0:
|
|
return build_result
|
|
return 0
|
|
|
|
if __name__ == '__main__':
|
|
sys.exit(main(sys.argv))
|