summaryrefslogtreecommitdiff
path: root/Setup.hs
diff options
context:
space:
mode:
authorhallgren <hallgren@chalmers.se>2012-10-18 20:01:22 +0000
committerhallgren <hallgren@chalmers.se>2012-10-18 20:01:22 +0000
commit584b6ba86d15e7ff471f94d2d120375ba3604553 (patch)
tree09fa0850d6637108e0ce370ee55006dddb309025 /Setup.hs
parent9a022a141ebcd0228cbc75aaadf32e7d1b84f207 (diff)
Use NOINLINE for build info and darcs version info
... to avoid unnecessary recompilation of other modules.
Diffstat (limited to 'Setup.hs')
-rw-r--r--Setup.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/Setup.hs b/Setup.hs
index 8177b20fa..bb54ea0f3 100644
--- a/Setup.hs
+++ b/Setup.hs
@@ -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