Commit bc31dbe8 authored by Simon Marlow's avatar Simon Marlow
Browse files

Disable any packages built with stage 2 when cross-compiling

Since we can't run stage 2 on the host.
parent 1b7c1e52
...@@ -400,7 +400,9 @@ endef ...@@ -400,7 +400,9 @@ endef
define addPackage # args: $1 = package, $2 = condition define addPackage # args: $1 = package, $2 = condition
ifneq "$(filter $1,$(PKGS_THAT_USE_TH)) $(GhcProfiled)" "$1 YES" ifneq "$(filter $1,$(PKGS_THAT_USE_TH)) $(GhcProfiled)" "$1 YES"
ifeq "$(filter $1,$(PKGS_THAT_BUILD_WITH_STAGE2))" "$1" ifeq "$(filter $1,$(PKGS_THAT_BUILD_WITH_STAGE2))" "$1"
ifneq "$(CrossCompiling)" "YES"
$(call addPackageGeneral,PACKAGES_STAGE2,$1,$2) $(call addPackageGeneral,PACKAGES_STAGE2,$1,$2)
endif
else else
$(call addPackageGeneral,PACKAGES_STAGE1,$1,$2) $(call addPackageGeneral,PACKAGES_STAGE1,$1,$2)
endif endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment