summaryrefslogtreecommitdiffstats
path: root/test/Fortran/F77FLAGS.py
diff options
context:
space:
mode:
authorWilliam Blevins <wblevins001@gmail.com>2016-05-15 12:13:31 (GMT)
committerWilliam Blevins <wblevins001@gmail.com>2016-05-15 12:13:31 (GMT)
commit39d873ea2789008bb153026d730c3a6541331be4 (patch)
tree5316b76d9deb7ffc29137fe4ee88b329d96ab580 /test/Fortran/F77FLAGS.py
parentbe27b009e8b59ff8b6605459bf39fe8590a37cf0 (diff)
downloadSCons-39d873ea2789008bb153026d730c3a6541331be4.zip
SCons-39d873ea2789008bb153026d730c3a6541331be4.tar.gz
SCons-39d873ea2789008bb153026d730c3a6541331be4.tar.bz2
Fixed Fortran tests which were throughing missing include directory warning.
Warning added in gcc5.
Diffstat (limited to 'test/Fortran/F77FLAGS.py')
-rw-r--r--test/Fortran/F77FLAGS.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/Fortran/F77FLAGS.py b/test/Fortran/F77FLAGS.py
index b708f9e..342adac 100644
--- a/test/Fortran/F77FLAGS.py
+++ b/test/Fortran/F77FLAGS.py
@@ -77,6 +77,9 @@ g77 = test.detect_tool(fc)
if g77:
+ directory = 'x'
+ test.subdir(directory)
+
test.write("wrapper.py",
"""import os
import sys
@@ -87,7 +90,7 @@ os.system(" ".join(sys.argv[1:]))
test.write('SConstruct', """
foo = Environment(F77 = '%(fc)s', tools = ['default', 'f77'], F77FILESUFFIXES = [".f"])
f77 = foo.Dictionary('F77')
-bar = foo.Clone(F77 = r'%(_python_)s wrapper.py ' + f77, F77FLAGS = '-Ix')
+bar = foo.Clone(F77 = r'%(_python_)s wrapper.py ' + f77, F77FLAGS = '-I%(directory)s')
foo.Program(target = 'foo', source = 'foo.f')
bar.Program(target = 'bar', source = 'bar.f')
""" % locals())