summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2016-09-11 20:01:38 (GMT)
committerWilliam Deegan <bill@baddogconsulting.com>2016-09-11 20:01:38 (GMT)
commit6ae4ba738ba63e37eda4a8b77c59fd21782e413a (patch)
tree346938ab1528dc6515f4005a5a9cc49687ac7911
parentc9a335d6bed101757540429c314e227c9d119486 (diff)
parent5f7882c1ff04fdd3ef3cc44654a2a69911cb73f0 (diff)
downloadSCons-6ae4ba738ba63e37eda4a8b77c59fd21782e413a.zip
SCons-6ae4ba738ba63e37eda4a8b77c59fd21782e413a.tar.gz
SCons-6ae4ba738ba63e37eda4a8b77c59fd21782e413a.tar.bz2
Merged in williamblevins/scons (pull request #352)
-rw-r--r--QMTest/TestSCons.py26
-rw-r--r--src/CHANGES.txt3
-rw-r--r--test/Fortran/FORTRAN.py1
-rw-r--r--test/VariantDir/VariantDir.py7
4 files changed, 6 insertions, 31 deletions
diff --git a/QMTest/TestSCons.py b/QMTest/TestSCons.py
index a515684..98b2f00 100644
--- a/QMTest/TestSCons.py
+++ b/QMTest/TestSCons.py
@@ -958,32 +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('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/src/CHANGES.txt b/src/CHANGES.txt
index 282e80b..361af21 100644
--- a/src/CHANGES.txt
+++ b/src/CHANGES.txt
@@ -29,6 +29,7 @@ RELEASE VERSION/DATE TO BE FILLED IN LATER
- Added LoadableModule to the list of global functions (DefaultEnvironment
builders).
+
From William Blevins:
- Updated D language scanner support to latest: 2.071.1. (PR #1924)
https://dlang.org/spec/module.html accessed 11 August 2016
@@ -39,6 +40,8 @@ RELEASE VERSION/DATE TO BE FILLED IN LATER
- Notes:
- May find new (previously missed) Dlang dependencies.
- May cause rebuild after upgrade due to dependency changes.
+ - Updated Fortran-related tests to pass under GCC 5/6.
+
RELEASE 2.5.0 - Mon, 09 Apr 2016 11:27:42 -0700
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>