Skip to content

Instantly share code, notes, and snippets.

@osa1
Created January 21, 2016 19:14
Show Gist options
  • Save osa1/75c220c557185ebf6379 to your computer and use it in GitHub Desktop.
Save osa1/75c220c557185ebf6379 to your computer and use it in GitHub Desktop.
$ git diff
diff --git a/ghc/ghc.mk b/ghc/ghc.mk
index c0c78bd..8133960 100644
--- a/ghc/ghc.mk
+++ b/ghc/ghc.mk
@@ -119,6 +119,8 @@ ifeq "$(GhcProfiled)" "YES"
ghc/stage2/build/tmp/$(ghc_stage2_PROG) : $(compiler_stage2_p_LIB)
ghc/stage2/build/tmp/$(ghc_stage2_PROG) : $(foreach lib,$(PACKAGES_STAGE1),$(libraries/$(lib)_dist-install_p_LIB))
endif
+ghc/stage1/build/tmp/$(ghc_stage1_PROG) : $(compiler_stage1_p_LIB)
+ghc/stage1/build/tmp/$(ghc_stage1_PROG) : $(foreach lib,$(PACKAGES_STAGE0),$(libraries/$(lib)_dist-boot_p_LIB))
# Modules here import HsVersions.h, so we need ghc_boot_platform.h
$(ghc_stage1_depfile_haskell) : compiler/stage1/$(PLATFORM_H)
diff --git a/libraries/process b/libraries/process
--- a/rules/build-package.mk
+++ b/rules/build-package.mk
@@ -70,7 +70,7 @@ endif
# Bootstrapping libs are only built one way
ifeq "$3" "0"
-$1_$2_WAYS = v
+$1_$2_WAYS = v p
else
$1_$2_WAYS = $$(filter-out $$($1_$2_EXCLUDED_WAYS),$$(GhcLibWays))
endif
$ cat mk/build.mk
include mk/flavours/devel2.mk
HADDOCK_DOCS = NO
BUILD_SPHINX_HTML = NO
GhcStage1HcOpts += -prof -fprof-auto
ghc_stage1_PROGRAM_WAY = p
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment