summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReid Barton <rwbarton@gmail.com>2017-01-20 16:49:37 -0500
committerBen Gamari <ben@smart-cactus.org>2017-01-20 16:49:38 -0500
commitb626a00113ecdb960ba642f0ce31e2ff71892b4d (patch)
tree383ba94988c85f2a094beadfd58706d5c2982766
parentb47613178232f8e849ac58ebd4111a34ab9c140b (diff)
downloadhaskell-b626a00113ecdb960ba642f0ce31e2ff71892b4d.tar.gz
testsuite: Don't fail if "target has RTS linker" field is missing
Test Plan: harbormaster Reviewers: austin, bgamari Reviewed By: bgamari Subscribers: thomie Differential Revision: https://phabricator.haskell.org/D2991
-rw-r--r--testsuite/config/ghc5
1 files changed, 4 insertions, 1 deletions
diff --git a/testsuite/config/ghc b/testsuite/config/ghc
index b126580863..959422e577 100644
--- a/testsuite/config/ghc
+++ b/testsuite/config/ghc
@@ -166,7 +166,10 @@ def get_compiler_info():
rtsInfoDict = dict(eval(s))
# external interpreter needs RTS linker support
- config.have_ext_interp = compilerInfoDict["target has RTS linker"] == "YES"
+ # If the field is not present (GHC 8.0 and earlier), assume we don't
+ # have -fexternal-interpreter (though GHC 8.0 actually does)
+ # so we can still run most tests.
+ config.have_ext_interp = compilerInfoDict.get("target has RTS linker", "NO") == "YES"
# See Note [Replacing backward slashes in config.libdir].
config.libdir = compilerInfoDict['LibDir'].replace('\\', '/')