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