diff options
author | Thomas Miedema <thomasmiedema@gmail.com> | 2015-10-16 20:28:05 +0200 |
---|---|---|
committer | Thomas Miedema <thomasmiedema@gmail.com> | 2015-10-17 11:20:53 +0200 |
commit | 3340fe01bc6842c2cad53271541dce6699512ce0 (patch) | |
tree | 12a02f8bcea762711597bca8e182ab1f53feb9d4 /rules/build-prog.mk | |
parent | 324e0ac650c85ac59c96965b17f2e292dd7e2de2 (diff) | |
download | haskell-3340fe01bc6842c2cad53271541dce6699512ce0.tar.gz |
Build system: fix `make -j1` (#10973)
There are multiple hacks all over the build system to account for the
fact that the ghc package uses different build subdirectories
(stage1/stage2) than the other packages (dist/dist-install).
One such hack filtered on 'ghc%', with the intention of filtering the
ghc package only. After renaming bin-package-db to ghc-boot
(d2f9972a35ce05ceb8a78893e433ef1df06f73ef, Phab:D1313, #10796), ghc-boot
also got caught in the hack, which broke the build when running without
parallelism.
This patch replaces the before mentioned hack by a different one, such
that filtering on 'ghc%' is no longer necessary. See Note [inconsistent
distdirs].
Reviewed by: austin
Differential Revision: https://phabricator.haskell.org/D1333
Diffstat (limited to 'rules/build-prog.mk')
-rw-r--r-- | rules/build-prog.mk | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/rules/build-prog.mk b/rules/build-prog.mk index 52036c6041..2a2049bb3f 100644 --- a/rules/build-prog.mk +++ b/rules/build-prog.mk @@ -190,12 +190,7 @@ ifneq "$$(BINDIST)" "YES" # necessarily set when this part of the makefile is read $1/$2/build/tmp/$$($1_$2_PROG) $1/$2/build/tmp/$$($1_$2_PROG).dll : \ $$(foreach dep,$$($1_$2_DEP_COMPONENT_IDS),\ - $$(if $$(filter ghc%,$$(dep)),\ - $(if $(filter 0,$3),$$(compiler_stage1_PROGRAM_DEP_LIB),\ - $(if $(filter 1,$3),$$(compiler_stage2_PROGRAM_DEP_LIB),\ - $(if $(filter 2,$3),$$(compiler_stage2_PROGRAM_DEP_LIB),\ - $$(error Bad build stage)))),\ - $$$$($$(dep)_dist-$(if $(filter 0,$3),boot,install)_PROGRAM_DEP_LIB))) + $$$$($$(dep)_dist-$(if $(filter 0,$3),boot,install)_PROGRAM_DEP_LIB)) $1_$2_PROG_NEEDS_C_WRAPPER = NO $1_$2_PROG_INPLACE = $$($1_$2_PROG) |