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)

Patch configure.py to only bootstrap.

  • configure.py

    old new  
    655655n.close()
    656656print('wrote %s.' % BUILD_FILENAME)
    657657
    658 if options.bootstrap:
    659     print('bootstrap complete.  rebuilding...')
     658# if options.bootstrap:
     659#     print('bootstrap complete.  rebuilding...')
    660660
    661     rebuild_args = []
     661#     rebuild_args = []
    662662
    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)
    676676
    677         rebuild_args.append(bootstrap_exe)
     677#         rebuild_args.append(bootstrap_exe)
    678678
    679     if options.verbose:
    680         rebuild_args.append('-v')
     679#     if options.verbose:
     680#         rebuild_args.append('-v')
    681681
    682     subprocess.check_call(rebuild_args)
     682#     subprocess.check_call(rebuild_args)