Commit c56e35a2 authored by Edward Z. Yang's avatar Edward Z. Yang
Browse files

Fix libraryDynDirSupported version test to handle buggy GHC 8.1.


Signed-off-by: default avatarEdward Z. Yang <ezyang@cs.stanford.edu>
parent b736896a
......@@ -329,8 +329,14 @@ backpackSupported = ghcSupported "Support Backpack"
-- "dynamic-library-dirs"?
libraryDynDirSupported :: Compiler -> Bool
libraryDynDirSupported comp = case compilerFlavor comp of
GHC -> compilerVersion comp >= mkVersion [8,0,1,20161021]
GHC ->
-- Not just v >= mkVersion [8,0,1,20161021], as there
-- are many GHC 8.1 nightlies which don't support this.
((v >= mkVersion [8,0,1,20161021] && v < mkVersion [8,1]) ||
v >= mkVersion [8,1,20161021])
_ -> False
where
v = compilerVersion comp
-- | Does this compiler support Haskell program coverage?
coverageSupported :: Compiler -> Bool
......
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