Use NOINLINE for build info and darcs version info

... to avoid unnecessary recompilation of other modules.
This commit is contained in:
hallgren
2012-10-18 20:01:22 +00:00
parent 9a022a141e
commit 584b6ba86d
4 changed files with 4 additions and 2 deletions

View File

@@ -391,6 +391,7 @@ extractDarcsVersion distFlag =
createDirectoryIfMissing True autogenPath
updateFile versionModulePath $ unlines $
["module "++modname++" where",
"{-# NOINLINE darcs_info #-}",
"darcs_info = "++show (either (const (Left ())) Right info)]
where
dist = fromFlagOrDefault "dist" distFlag