summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Blevins <wblevins001@gmail.com>2016-08-10 11:42:01 (GMT)
committerWilliam Blevins <wblevins001@gmail.com>2016-08-10 11:42:01 (GMT)
commit5f7882c1ff04fdd3ef3cc44654a2a69911cb73f0 (patch)
tree855dd777d15f45bb6fbeb93dc4160af09c10d8b7
parent2f3daaaff1ad6d5252e1583fd65b2a5fd4a95ca7 (diff)
downloadSCons-5f7882c1ff04fdd3ef3cc44654a2a69911cb73f0.zip
SCons-5f7882c1ff04fdd3ef3cc44654a2a69911cb73f0.tar.gz
SCons-5f7882c1ff04fdd3ef3cc44654a2a69911cb73f0.tar.bz2
Removed deprecate fortran lib handling.
-rw-r--r--QMTest/TestSCons.py28
-rw-r--r--test/Fortran/FORTRAN.py1
-rw-r--r--test/VariantDir/VariantDir.py7
3 files changed, 3 insertions, 33 deletions
diff --git a/QMTest/TestSCons.py b/QMTest/TestSCons.py
index 2d4df3a..98b2f00 100644
--- a/QMTest/TestSCons.py
+++ b/QMTest/TestSCons.py
@@ -958,34 +958,6 @@ SConscript( sconscript )
# to use cygwin compilers on cmd.exe -> uncomment following line
#Configure_lib = 'm'
- def gccFortranLibs(self):
- """Test which gcc Fortran startup libraries are required.
- This should probably move into SCons itself, but is kind of hacky.
- """
- if sys.platform.find('irix') != -1:
- return ['ftn']
-
- libs = ['g2c']
- cmd = ['gcc','-v']
-
- try:
- p = Popen(cmd, stdout=PIPE, stderr=PIPE)
- stdout, stderr = p.communicate()
- except:
- return libs
-
- m = re.search('(gcc\s+version|gcc-Version)\s+(\d\.\d)', stderr)
- if m:
- gcc_version = m.group(2)
- if re.match('[5-9].\d', gcc_version):
- libs = ['gfortran']
- elif re.match('4.[^0]', gcc_version):
- libs = ['gfortranbegin']
- elif gcc_version in ('3.1', '4.0'):
- libs = ['frtbegin'] + libs
-
- return libs
-
def skip_if_not_msvc(self, check_platform=True):
""" Check whether we are on a Windows platform and skip the
test if not. This check can be omitted by setting
diff --git a/test/Fortran/FORTRAN.py b/test/Fortran/FORTRAN.py
index 4a2529c..9a01fa6 100644
--- a/test/Fortran/FORTRAN.py
+++ b/test/Fortran/FORTRAN.py
@@ -87,7 +87,6 @@ test.must_match('test08' + _exe, "This is a .FPP file.\n")
fc = 'f77'
f77 = test.detect_tool(fc)
-FTN_LIB = test.gccFortranLibs()
if f77:
diff --git a/test/VariantDir/VariantDir.py b/test/VariantDir/VariantDir.py
index 0092692..1b620bb 100644
--- a/test/VariantDir/VariantDir.py
+++ b/test/VariantDir/VariantDir.py
@@ -28,7 +28,6 @@ import TestSCons
_exe = TestSCons._exe
test = TestSCons.TestSCons()
-fortran_runtime = test.gccFortranLibs()
fortran = test.detect('FORTRAN')
@@ -118,9 +117,9 @@ except:
if fortran and env.Detect(fortran):
env.Command(target='b2.f', source='b2.in', action=buildIt)
- env.Clone(LIBS = %s).Program(target='bar2', source='b2.f')
- env.Clone(LIBS = %s).Program(target='bar1', source='b1.f')
-""" % (fortran_runtime, fortran_runtime))
+ env.Clone().Program(target='bar2', source='b2.f')
+ env.Clone().Program(target='bar1', source='b1.f')
+""")
test.write(['work1', 'src', 'f1.c'], r"""
#include <stdio.h>