Skip to content
Snippets Groups Projects
Commit d216510e authored by Matthew Pickering's avatar Matthew Pickering Committed by Marge Bot
Browse files

Remove ad-hoc installation of mingw toolchain in relocatable bindists

This reverts 616ac300

The choice about whether to install mingw is taken in the installation
makefile.

This is also broken on non-windows systems.

The actual issue was the EnableDistroToolchain variable wasn't declared
in mk/config.mk and therefore the check to install mingw was failing.
parent 4181aa40
No related branches found
No related tags found
No related merge requests found
......@@ -55,10 +55,11 @@ show:
.PHONY: install_extra
ifeq "$(EnableDistroToolchain)" "NO"
ifeq "$(Windows_Host)" "YES"
install_extra: install_mingw
else
install_extra:
endif
endif
install_extra:
.PHONY: install_bin
ifeq "$(RelocatableBuild)" "YES"
......
......@@ -133,6 +133,7 @@ INSTALL_DIR = $(INSTALL) -m 755 -d
CrossCompiling = @CrossCompiling@
CrossCompilePrefix = @CrossCompilePrefix@
GhcUnregisterised = @Unregisterised@
EnableDistroToolchain = @SettingsUseDistroMINGW@
# The THREADED_RTS requires `BaseReg` to be in a register and the
# `GhcUnregisterised` mode doesn't allow that.
......@@ -226,3 +227,4 @@ SettingsOptCommand = @SettingsOptCommand@
SettingsLlvmAsCommand = @SettingsLlvmAsCommand@
SettingsUseDistroMINGW = @SettingsUseDistroMINGW@
......@@ -135,8 +135,6 @@ bindistRules = do
let ghcVersionPretty = "ghc-" ++ version ++ "-" ++ targetPlatform
let prefix = cwd -/- root -/- "reloc-bindist" -/- ghcVersionPretty
installTo Relocatable prefix
copyDirectory (root -/- "mingw") prefix
liftIO $ IO.removeDirectoryRecursive (prefix -/- "lib" -/- "mingw")
phony "install" $ do
need ["binary-dist-dir"]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment