summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Gamari <ben@well-typed.com>2019-06-14 14:58:15 -0400
committerBen Gamari <ben@well-typed.com>2019-06-17 09:06:28 -0400
commitde7bb2b01e5214e9dada4b6c772b415166a73f20 (patch)
tree79ef343a9089da0afb0fef2a2ca17158f7a7c3ee
parentbb141114ad4e4eb6db66e212fa08d93257b99bbc (diff)
downloadhaskell-wip/hadrian-usersettings-rebuild.tar.gz
hadrian: Compile UserSettings with -O0wip/hadrian-usersettings-rebuild
This guarantees that the interface file for `UserSettings` doesn't contain any unfoldings, ensuring that a change in it requires minimal rebuilds.
-rw-r--r--hadrian/src/UserSettings.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/hadrian/src/UserSettings.hs b/hadrian/src/UserSettings.hs
index c92dd11d44..56353bf92a 100644
--- a/hadrian/src/UserSettings.hs
+++ b/hadrian/src/UserSettings.hs
@@ -1,3 +1,6 @@
+-- Ensure we don't expose any unfoldings to guarantee quick rebuilds
+{-# OPTIONS_GHC -O0 #-}
+
-- If you want to customise your build you should copy this file from
-- hadrian/src/UserSettings.hs to hadrian/UserSettings.hs and edit your copy.
-- If you don't copy the file your changes will be tracked by git and you can