Adds ghcversion and derivedconstants to rts
authorMoritz Angermann <moritz.angermann@gmail.com>
Sun, 3 Jan 2016 04:42:27 +0000 (12:42 +0800)
committerMoritz Angermann <moritz.angermann@gmail.com>
Sun, 3 Jan 2016 04:42:27 +0000 (12:42 +0800)
Fixes #77 and fixes #76 (ghcverison).

src/Rules/Generate.hs

index e14b941..299f79a 100644 (file)
@@ -62,6 +62,9 @@ generatedDependencies stage pkg
                         , "includes/ghcplatform.h" ]
     | pkg == rts      = let buildPath = targetPath stage rts -/- "build"
                         in
+                        [ "includes/ghcversion.h" -- missing only in stage1. See #76
+                        , derivedConstantsPath -/- "DerivedConstants.h" ]
+                        ++
                         fmap (buildPath -/-) ["ffi.h", "ffitarget.h"]
     | otherwise = []