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 """Recipes for NativeClient toolchain packages. | 6 """Recipes for NativeClient toolchain packages. |
7 | 7 |
8 The real entry plumbing is in toolchain_main.py. | 8 The real entry plumbing is in toolchain_main.py. |
9 """ | 9 """ |
10 | 10 |
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
299 'libitm', | 299 'libitm', |
300 'libjava', | 300 'libjava', |
301 'libmudflap', | 301 'libmudflap', |
302 'libobjc', | 302 'libobjc', |
303 'libquadmath', | 303 'libquadmath', |
304 'libssp', | 304 'libssp', |
305 'libstdc++-v3', | 305 'libstdc++-v3', |
306 ]], | 306 ]], |
307 'commands': ConfigureTargetPrep(target) + [ | 307 'commands': ConfigureTargetPrep(target) + [ |
308 ConfigureGccCommand(target), | 308 ConfigureGccCommand(target), |
309 GccCommand(target, MAKE_PARALLEL_CMD + ['all-gcc']), | 309 # gcc/Makefile's install rules ordinarily look at the |
| 310 # installed include directory for a limits.h to decide |
| 311 # whether the lib/gcc/.../include-fixed/limits.h header |
| 312 # should be made to expect a libc-supplied limits.h or not. |
| 313 # Since we're doing this build in a clean environment without |
| 314 # any libc installed, we need to force its hand here. |
| 315 GccCommand(target, MAKE_PARALLEL_CMD + ['all-gcc', |
| 316 'LIMITS_H_TEST=true']), |
310 # gcc/Makefile's install targets populate this directory | 317 # gcc/Makefile's install targets populate this directory |
311 # only if it already exists. | 318 # only if it already exists. |
312 command.Mkdir(os.path.join('%(output)s', target + '-nacl', 'bin'), | 319 command.Mkdir(os.path.join('%(output)s', target + '-nacl', 'bin'), |
313 True), | 320 True), |
314 GccCommand(target, MAKE_DESTDIR_CMD + ['install-strip-gcc']), | 321 GccCommand(target, MAKE_DESTDIR_CMD + ['install-strip-gcc']), |
315 REMOVE_INFO_DIR, | 322 REMOVE_INFO_DIR, |
316 ], | 323 ], |
317 }, | 324 }, |
318 } | 325 } |
319 return tools | 326 return tools |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
455 | 462 |
456 | 463 |
457 PACKAGES = CollectPackages(TARGET_LIST) | 464 PACKAGES = CollectPackages(TARGET_LIST) |
458 | 465 |
459 | 466 |
460 if __name__ == '__main__': | 467 if __name__ == '__main__': |
461 tb = toolchain_main.PackageBuilder(PACKAGES, sys.argv[1:]) | 468 tb = toolchain_main.PackageBuilder(PACKAGES, sys.argv[1:]) |
462 # TODO(mcgrathr): The bot ought to run some native_client tests | 469 # TODO(mcgrathr): The bot ought to run some native_client tests |
463 # using the new toolchain, like the old x86 toolchain bots do. | 470 # using the new toolchain, like the old x86 toolchain bots do. |
464 tb.Main() | 471 tb.Main() |
OLD | NEW |