test.write('SConstruct',"""
env=Environment()
-env['PCH'] = env.PCH('StdAfx.cpp')[0]
env['PDB'] = File('test.pdb')
env['PCHSTOP'] = 'StdAfx.h'
+env['PCH'] = env.PCH('StdAfx.cpp')[0]
env.Program('test', ['test.cpp', env.RES('test.rc')], LIBS=['user32'])
env.Object('fast', 'foo.cpp')
slow = time.time() - start
# using precompiled headers should be significantly faster
-assert fast < slow*0.75
+assert fast < slow*0.8
##########
test.write('src/SConscript',"""
env=Environment()
-env.PCH('StdAfx.cpp')
env['PCH'] = 'StdAfx.pch'
env['PDB'] = '#out/test.pdb'
env['PCHSTOP'] = 'StdAfx.h'
+env.PCH('StdAfx.cpp')
env.Program('#out/test.exe', 'test.cpp')
""")
test.write('SConstruct',"""
env=Environment()
-env['PCH'] = env.PCH('StdAfx.cpp')[0]
env['PDB'] = File('test.pdb')
+env['PCH'] = env.PCH('StdAfx.cpp')[0]
env.Program('test', 'test.cpp')
""")
test.write('SConstruct',"""
env=Environment()
-env['PCH'] = env.PCH('StdAfx.cpp')[0]
env['PDB'] = File('test.pdb')
env['PCHSTOP'] = File('StdAfx.h')
+env['PCH'] = env.PCH('StdAfx.cpp')[0]
env.Program('test', 'test.cpp')
""")