010-bootstrap-configure-only.patch 873 B

123456789101112131415161718192021222324
  1. --- 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. -if options.bootstrap:
  16. +if options.bootstrap and options.no_rebuild:
  17. + print('bootstrap complete. execute ninja in this directory...')
  18. + print(os.getcwd())
  19. +
  20. +elif options.bootstrap:
  21. print('bootstrap complete. rebuilding...')
  22. rebuild_args = []