summaryrefslogtreecommitdiff
path: root/hadrian/src/Main.hs
diff options
context:
space:
mode:
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