testsuite: Don't fail if "target has RTS linker" field is missing
authorReid Barton <rwbarton@gmail.com>
Fri, 20 Jan 2017 21:49:37 +0000 (16:49 -0500)
committerBen Gamari <ben@smart-cactus.org>
Fri, 20 Jan 2017 21:49:38 +0000 (16:49 -0500)
Test Plan: harbormaster

Reviewers: austin, bgamari

Reviewed By: bgamari

Subscribers: thomie

Differential Revision: https://phabricator.haskell.org/D2991

testsuite/config/ghc

index b126580..959422e 100644 (file)
@@ -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('\\', '/')