Debian Codegraph @

test/Configure/is_conftest/fixture/SConstruct

raw
1 # SPDX-License-Identifier: MIT
2 #
3 # Copyright The SCons Foundation
4
5 """Test the nodes are created as conftest nodes in configure tests."""
6 import sys
7
8 DefaultEnvironment(tools=[])
9 env = Environment()
10
11 conf = Configure(env)
12 if sys.platform == "win32":
13 conf.env.Append(
14 CCFLAGS="/DEBUG /Z7 /INCREMENTAL:NO",
15 LINKFLAGS="/DEBUG /INCREMENTAL:NO",
16 PDB='${TARGET.base}.pdb')
17 if not conf.TryRun("int main( int argc, char* argv[] ){return 0;}", '.c'):
18 print("FAIL")
19
20 env = conf.Finish()
21
22 for node in env.Glob(conf.confdir.path + '/*'):
23 if not node.is_conftest():
24 print("FAIL")
25
26