Ticket #51713: configure.py-bootstrap-only.diff
File configure.py-bootstrap-only.diff, 1.6 KB (added by slewsys (Andrew L. Moore), 8 years ago) |
---|
-
configure.py
old new 655 655 n.close() 656 656 print('wrote %s.' % BUILD_FILENAME) 657 657 658 if options.bootstrap:659 print('bootstrap complete. rebuilding...')658 # if options.bootstrap: 659 # print('bootstrap complete. rebuilding...') 660 660 661 rebuild_args = []661 # rebuild_args = [] 662 662 663 if platform.can_rebuild_in_place():664 rebuild_args.append('./ninja')665 else:666 if platform.is_windows():667 bootstrap_exe = 'ninja.bootstrap.exe'668 final_exe = 'ninja.exe'669 else:670 bootstrap_exe = './ninja.bootstrap'671 final_exe = './ninja'672 673 if os.path.exists(bootstrap_exe):674 os.unlink(bootstrap_exe)675 os.rename(final_exe, bootstrap_exe)663 # if platform.can_rebuild_in_place(): 664 # rebuild_args.append('./ninja') 665 # else: 666 # if platform.is_windows(): 667 # bootstrap_exe = 'ninja.bootstrap.exe' 668 # final_exe = 'ninja.exe' 669 # else: 670 # bootstrap_exe = './ninja.bootstrap' 671 # final_exe = './ninja' 672 673 # if os.path.exists(bootstrap_exe): 674 # os.unlink(bootstrap_exe) 675 # os.rename(final_exe, bootstrap_exe) 676 676 677 rebuild_args.append(bootstrap_exe)677 # rebuild_args.append(bootstrap_exe) 678 678 679 if options.verbose:680 rebuild_args.append('-v')679 # if options.verbose: 680 # rebuild_args.append('-v') 681 681 682 subprocess.check_call(rebuild_args)682 # subprocess.check_call(rebuild_args)