2 # Copyright (c) 2012 The Native Client 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.
6 """Main entry point for toolchain_build buildbots.
8 Passes its arguments to toolchain_build.py.
16 SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
17 NACL_DIR = os.path.dirname(SCRIPT_DIR)
20 if sys.platform == 'win32':
21 print '@@@BUILD_STEP install mingw@@@'
23 subprocess.check_call([os.path.join(NACL_DIR, 'buildbot', 'mingw_env.bat')])
25 print '@@@BUILD_STEP run_pynacl_tests.py@@@'
27 subprocess.check_call([
28 sys.executable, os.path.join(NACL_DIR, 'pynacl', 'run_pynacl_tests.py')])
30 # Toolchain build emits its own annotator stages.
32 subprocess.check_call([
34 os.path.join(NACL_DIR, 'toolchain_build', 'toolchain_build_bionic.py')] +