blob: 4785ac654eb28e3f9292f44b6da188707536f28a [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001--- a/configure.py
2+++ b/configure.py
3@@ -198,6 +198,8 @@ parser = OptionParser()
4 profilers = ['gmon', 'pprof']
5 parser.add_option('--bootstrap', action='store_true',
6 help='bootstrap a ninja binary from nothing')
7+parser.add_option('--no-rebuild', action='store_true',
8+ help='let user execute ninja after build.ninja generation')
9 parser.add_option('--verbose', action='store_true',
10 help='enable verbose build')
11 parser.add_option('--platform',
12@@ -756,7 +758,11 @@ n.build('all', 'phony', all_targets)
13 n.close()
14 print('wrote %s.' % BUILD_FILENAME)
15
16-if options.bootstrap:
17+if options.bootstrap and options.no_rebuild:
18+ print('bootstrap complete. execute ninja in this directory...')
19+ print(os.getcwd())
20+
21+elif options.bootstrap:
22 print('bootstrap complete. rebuilding...')
23
24 rebuild_args = []