When running ./configure.py --bootstrap, do not automatically run ./ninja --- configure.py.orig 2025-07-10 15:43:08.000000000 -0500 +++ configure.py 2025-08-01 06:16:24.000000000 -0500 @@ -783,28 +783,3 @@ n.close() # type: ignore # Item "Bootstrap" of "Writer | Bootstrap" has no attribute "close" print('wrote %s.' % BUILD_FILENAME) -if options.bootstrap: - print('bootstrap complete. rebuilding...') - - rebuild_args = [] - - if platform.can_rebuild_in_place(): - rebuild_args.append('./ninja') - else: - if platform.is_windows(): - bootstrap_exe = 'ninja.bootstrap.exe' - final_exe = 'ninja.exe' - else: - bootstrap_exe = './ninja.bootstrap' - final_exe = './ninja' - - if os.path.exists(bootstrap_exe): - os.unlink(bootstrap_exe) - os.rename(final_exe, bootstrap_exe) - - rebuild_args.append(bootstrap_exe) - - if options.verbose: - rebuild_args.append('-v') - - subprocess.check_call(rebuild_args)