[commit: ghc] master: Add deriveConstants to the dep files we build in phase 0 (6579425)
Ian Lynagh
igloo at earth.li
Sat Apr 20 19:30:56 CEST 2013
Repository : http://darcs.haskell.org/ghc.git/
On branch : master
https://github.com/ghc/ghc/commit/657942546768b777764cf8a96adc9b089e7f8584
>---------------------------------------------------------------
commit 657942546768b777764cf8a96adc9b089e7f8584
Author: Ian Lynagh <ian at well-typed.com>
Date: Sat Apr 20 15:29:32 2013 +0100
Add deriveConstants to the dep files we build in phase 0
Dependency problem was discovered by int-e.
I've also added some comments about what's going on.
>---------------------------------------------------------------
ghc.mk | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/ghc.mk b/ghc.mk
index d873070..ae5c3ed 100644
--- a/ghc.mk
+++ b/ghc.mk
@@ -1276,13 +1276,28 @@ endif
# -----------------------------------------------------------------------------
# Numbered phase targets
+# In phase 1, we'll be building dependency files for most things
+# built by the bootstrapping compiler while make is 'include'ing
+# makefiles. But in order to build dependency files, we'll need to
+# build any automatically generated .hs files, which means that
+# we'll need to be able to build any tools that generate .hs files
+# etc. But in order to do that, we need to already know the
+# dependencies for those tools, so we build their dependency files
+# here.
.PHONY: phase_0_builds
phase_0_builds: $(utils/ghc-pkg_dist_depfile_haskell)
phase_0_builds: $(utils/ghc-pkg_dist_depfile_c_asm)
+# hsc2hs is needed, e.g. to make the .hs files for hpc.
phase_0_builds: $(utils/hsc2hs_dist_depfile_haskell)
phase_0_builds: $(utils/hsc2hs_dist_depfile_c_asm)
+# genprimopcode is needed ot make the .hs-incl files that are in the
+# ghc package.
phase_0_builds: $(utils/genprimopcode_dist_depfile_haskell)
phase_0_builds: $(utils/genprimopcode_dist_depfile_c_asm)
+# deriveConstants is used to create header files included in the
+# ghc package.
+phase_0_builds: $(utils/deriveConstants_dist_depfile_haskell)
+phase_0_builds: $(utils/deriveConstants_dist_depfile_c_asm)
.PHONY: phase_1_builds
phase_1_builds: $(PACKAGE_DATA_MKS)
More information about the ghc-commits
mailing list