Skip to content
Snippets Groups Projects
Commit bbbbd18c authored by Isaac Potoczny-Jones's avatar Isaac Potoczny-Jones
Browse files

resync w/ cvs where Ross beat me to the punch on the GLASGOW_HASKELL thing

parent 40170cd7
No related merge requests found
...@@ -246,12 +246,12 @@ cppOptions bi lbi ...@@ -246,12 +246,12 @@ cppOptions bi lbi
[opt | opt@('-':c:_) <- ccOptions bi, c `elem` "DIU"] [opt | opt@('-':c:_) <- ccOptions bi, c `elem` "DIU"]
hcDefines :: Compiler -> [String] hcDefines :: Compiler -> [String]
hcDefines Compiler { compilerFlavor=GHC, compilerVersion=version }
= ["-D__GLASGOW_HASKELL__=" ++ versionInt version]
hcDefines Compiler { compilerFlavor=NHC, compilerVersion=version } hcDefines Compiler { compilerFlavor=NHC, compilerVersion=version }
= ["-D__NHC__=" ++ versionInt version] = ["-D__NHC__=" ++ versionInt version]
hcDefines Compiler { compilerFlavor=Hugs } hcDefines Compiler { compilerFlavor=Hugs }
= ["-D__HUGS__"] = ["-D__HUGS__"]
hcDefines Compiler { compilerFlavor=GHC, compilerVersion=version }
= ["-D__GLASGOW_HASKELL__=" ++ versionInt version]
hcDefines _ = [] hcDefines _ = []
versionInt :: Version -> String versionInt :: Version -> String
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment