OLD | NEW |
1 #!/usr/bin/python | 1 #!/usr/bin/python |
2 # Copyright (c) 2012 The Native Client Authors. All rights reserved. | 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 | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 """Main entry point for toolchain_build buildbots. | 6 """Main entry point for toolchain_build buildbots. |
7 | 7 |
8 Passes its arguments to toolchain_build.py. | 8 Passes its arguments to toolchain_build.py. |
9 """ | 9 """ |
10 | 10 |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 if toolchain_name.startswith('nacl_'): | 124 if toolchain_name.startswith('nacl_'): |
125 scons_toolchain_arg = 'nacl_%s_dir' % clib | 125 scons_toolchain_arg = 'nacl_%s_dir' % clib |
126 elif toolchain_name.startswith('pnacl_'): | 126 elif toolchain_name.startswith('pnacl_'): |
127 scons_toolchain_arg = 'pnacl_%s_dir' % clib | 127 scons_toolchain_arg = 'pnacl_%s_dir' % clib |
128 else: | 128 else: |
129 print 'Error - Could not figure out toolchain type: %s' % toolchain_name | 129 print 'Error - Could not figure out toolchain type: %s' % toolchain_name |
130 return 1 | 130 return 1 |
131 | 131 |
132 subprocess.check_call([sys.executable, | 132 subprocess.check_call([sys.executable, |
133 BUILDBOT_STANDARD, | 133 BUILDBOT_STANDARD, |
134 '--no-gyp', | |
135 '--step-suffix= [%s %s]' % (toolchain_name, mode), | 134 '--step-suffix= [%s %s]' % (toolchain_name, mode), |
136 '--scons-args', '%s=%s' % (scons_toolchain_arg, | 135 '--scons-args', '%s=%s' % (scons_toolchain_arg, |
137 toolchain_dir), | 136 toolchain_dir), |
138 mode, arch, clib]) | 137 mode, arch, clib]) |
139 | 138 |
140 return 0 | 139 return 0 |
141 | 140 |
142 if __name__ == '__main__': | 141 if __name__ == '__main__': |
143 sys.exit(main(sys.argv[1:])) | 142 sys.exit(main(sys.argv[1:])) |
OLD | NEW |