From b626a00113ecdb960ba642f0ce31e2ff71892b4d Mon Sep 17 00:00:00 2001 From: Reid Barton Date: Fri, 20 Jan 2017 16:49:37 -0500 Subject: 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 --- testsuite/config/ghc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'testsuite/config') 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('\\', '/') -- cgit v1.2.1