Commit 02293783 authored by ian@well-typed.com's avatar ian@well-typed.com

Fix the testsuite config to allow running with GHC 7.6

parent e47e6644
......@@ -202,16 +202,25 @@ def get_compiler_info():
except:
config.package_conf_cache_file = ''
if compilerInfoDict["GHC Dynamic"] == "YES":
try:
if compilerInfoDict["GHC Dynamic"] == "YES":
ghcDynamic = True
elif compilerInfoDict["GHC Dynamic"] == "NO":
ghcDynamic = False
else:
raise 'Bad value for "GHC Dynamic"'
except KeyError:
# GHC < 7.7 doesn't have a "GHC Dynamic" field
ghcDynamic = False
if ghcDynamic:
config.ghc_th_way_flags = "-dynamic"
config.ghci_way_flags = "-dynamic"
config.ghc_th_way = "dyn"
config.ghc_plugin_way = "dyn"
elif compilerInfoDict["GHC Dynamic"] == "NO":
else:
config.ghc_th_way_flags = "-static"
config.ghci_way_flags = "-static"
config.ghc_th_way = "normal"
config.ghc_plugin_way = "normal"
else:
raise 'Bad value for "GHC Dynamic"'
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment