summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2002-08-30 05:06:27 (GMT)
committerSteven Knight <knight@baldmt.com>2002-08-30 05:06:27 (GMT)
commitd8b4ea0c9adfb77244f488c338d290c863f2b8b1 (patch)
tree165056ab4b2db0b0a81381a2fcb22f86ad6dd15f /test
parent8acb75d6298160a653e88897ab3b9273dd3d1551 (diff)
downloadSCons-d8b4ea0c9adfb77244f488c338d290c863f2b8b1.zip
SCons-d8b4ea0c9adfb77244f488c338d290c863f2b8b1.tar.gz
SCons-d8b4ea0c9adfb77244f488c338d290c863f2b8b1.tar.bz2
Make SCons/Tool/ifl.py get included in the win32 package, make Microsoft tools be prefered on win32, and get rid of some cruft in the Platform files. (Anthony Roach)
Diffstat (limited to 'test')
-rw-r--r--test/BuildDir.py14
1 files changed, 12 insertions, 2 deletions
diff --git a/test/BuildDir.py b/test/BuildDir.py
index d70ab7a..c2ad4af 100644
--- a/test/BuildDir.py
+++ b/test/BuildDir.py
@@ -36,7 +36,12 @@ else:
test = TestSCons.TestSCons()
-test.write('SConstruct', "print Environment()['F77']\n")
+test.write('SConstruct', """
+try:
+ print Environment()['F77']
+except:
+ print 'There is no fortran compiler.'
+""")
test.run()
f77 = test.where_is(test.stdout()[:-1])
test.unlink('SConstruct')
@@ -110,7 +115,12 @@ env.Command(target='f2.c', source='f2.in', action=buildIt)
env.Program(target='foo2', source='f2.c')
env.Program(target='foo1', source='f1.c')
-if WhereIs(env['F77']):
+try:
+ f77 = env['F77']
+except:
+ f77 = None
+
+if f77 and WhereIs(env['F77']):
env.Command(target='b2.f', source='b2.in', action=buildIt)
env.Copy(LIBS = 'g2c').Program(target='bar2', source='b2.f')
env.Copy(LIBS = 'g2c').Program(target='bar1', source='b1.f')