wscript 381 B

1234567891011121314151617181920
  1. #! /usr/bin/env python
  2. """
  3. compare the execution time of
  4. waf configure
  5. and
  6. waf configure --confcache
  7. """
  8. top = '.'
  9. out = 'build'
  10. def options(opt):
  11. opt.load('compiler_c')
  12. opt.add_option('--confcache', dest='confcache', default=0, action='count', help='Use a configuration cache')
  13. def configure(conf):
  14. conf.load('compiler_c')
  15. conf.check(fragment='int main() { return 0; }')