From 584b6ba86d15e7ff471f94d2d120375ba3604553 Mon Sep 17 00:00:00 2001 From: hallgren Date: Thu, 18 Oct 2012 20:01:22 +0000 Subject: Use NOINLINE for build info and darcs version info ... to avoid unnecessary recompilation of other modules. --- Setup.hs | 1 + 1 file changed, 1 insertion(+) (limited to 'Setup.hs') 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 -- cgit v1.2.3