summaryrefslogtreecommitdiff
path: root/ghc
diff options
context:
space:
mode:
authorIan Lynagh <ian@well-typed.com>2012-09-13 12:54:04 +0100
committerIan Lynagh <ian@well-typed.com>2012-09-13 12:54:04 +0100
commitf89b73e677ce1988ce2384b8918cec2b9443d466 (patch)
treeee2d4b9b21604a1445684471f3ef922f9f82d559 /ghc
parent86054b4ab5125a8b71887b06786d0a428539fb9c (diff)
downloadhaskell-f89b73e677ce1988ce2384b8918cec2b9443d466.tar.gz
Add more modes to mkDerivedConstants
We now generate a platformConstants file that we can read at runtime.
Diffstat (limited to 'ghc')
-rw-r--r--ghc/ghc.mk13
1 files changed, 10 insertions, 3 deletions
diff --git a/ghc/ghc.mk b/ghc/ghc.mk
index c45e28891a..e1545033be 100644
--- a/ghc/ghc.mk
+++ b/ghc/ghc.mk
@@ -127,12 +127,19 @@ all_ghc_stage3 : $(GHC_STAGE3)
$(INPLACE_LIB)/settings : settings
"$(CP)" $< $@
+$(INPLACE_LIB)/platformConstants: $(includes_GHCCONSTANTS_HASKELL_VALUE)
+ "$(CP)" $< $@
+
# The GHC programs need to depend on all the helper programs they might call,
# and the settings files they use
-$(GHC_STAGE1) : | $(UNLIT) $(INPLACE_LIB)/settings
-$(GHC_STAGE2) : | $(UNLIT) $(INPLACE_LIB)/settings
-$(GHC_STAGE3) : | $(UNLIT) $(INPLACE_LIB)/settings
+GHC_DEPENDENCIES += $(UNLIT)
+GHC_DEPENDENCIES += $(INPLACE_LIB)/settings
+GHC_DEPENDENCIES += $(INPLACE_LIB)/platformConstants
+
+$(GHC_STAGE1) : | $(GHC_DEPENDENCIES)
+$(GHC_STAGE2) : | $(GHC_DEPENDENCIES)
+$(GHC_STAGE3) : | $(GHC_DEPENDENCIES)
ifeq "$(GhcUnregisterised)" "NO"
$(GHC_STAGE1) : | $(SPLIT)