Forward port benchmark for type checking
[scons.git] / test / MSVC / msvc_fixture / SConstruct
blobdd499ae24de7a29f9c619ef4b4495e04d7f917f1
1 # SPDX-License-Identifier: MIT
3 # Copyright The SCons Foundation
5 """msvc_fixture's SConstruct"""
7 DefaultEnvironment(tools=[])
8 # TODO: this is order-dependent (putting 'mssdk' second or third breaks),
9 # and ideally we shouldn't need to specify the tools= list anyway.
10 env = Environment(tools=['mssdk', 'msvc', 'mslink'])
11 env.Append(CCFLAGS='/DPCHDEF')
12 env['PDB'] = File('test.pdb')
13 env['PCHSTOP'] = 'StdAfx.h'
14 env['PCH'] = env.PCH('StdAfx.cpp')[0]
15 env.Program('test', ['test.cpp', env.RES('test.rc')], LIBS=['user32'])
17 env.Object('fast', 'foo.cpp')
18 env.Object('slow', 'foo.cpp', PCH=0)