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