mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-22 01:22:51 -06:00
Use NOINLINE for build info and darcs version info
... to avoid unnecessary recompilation of other modules.
This commit is contained in:
1
Setup.hs
1
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
|
||||
|
||||
Reference in New Issue
Block a user