summaryrefslogtreecommitdiff
path: root/hadrian/src/Main.hs
diff options
context:
space:
mode:
authorAlp Mestanogullari <alpmestan@gmail.com>2020-04-08 09:24:55 +0200
committerMarge Bot <ben+marge-bot@smart-cactus.org>2020-05-13 20:03:30 -0400
commitd7e0b57fda289e2715e7be86d4871503e3c09ee8 (patch)
tree455eec9a46863ab42a78775c9a6d3843e8115378 /hadrian/src/Main.hs
parent55e35c0b7e0f4b907dc21d42827b1cea4317226e (diff)
downloadhaskell-d7e0b57fda289e2715e7be86d4871503e3c09ee8.tar.gz
hadrian: add a --freeze2 option to freeze stage 1 and 2
Diffstat (limited to 'hadrian/src/Main.hs')
-rw-r--r--hadrian/src/Main.hs7
1 files changed, 6 insertions, 1 deletions
diff --git a/hadrian/src/Main.hs b/hadrian/src/Main.hs
index 36b1fd3cc1..632b742624 100644
--- a/hadrian/src/Main.hs
+++ b/hadrian/src/Main.hs
@@ -30,7 +30,12 @@ main = do
BuildRoot buildRoot = CommandLine.lookupBuildRoot argsMap
rebuild = [ (RebuildLater, buildRoot -/- "stage0/**")
- | CommandLine.lookupFreeze1 argsMap ]
+ | CommandLine.lookupFreeze1 argsMap ||
+ CommandLine.lookupFreeze2 argsMap
+ ] ++
+ [ (RebuildLater, buildRoot -/- "stage1/**")
+ | CommandLine.lookupFreeze2 argsMap
+ ]
cwd <- getCurrentDirectory
shakeColor <- shouldUseColor