Commit 30091f98 authored by Ian Lynagh's avatar Ian Lynagh
Browse files

Hack: copy ld.exe to compiler/gcc-lib so Cabal can find it

parent 602adc29
...@@ -120,6 +120,28 @@ bootstrap2 : stage1 ...@@ -120,6 +120,28 @@ bootstrap2 : stage1
bootstrap3 : bootstrap2 bootstrap3 : bootstrap2
$(MAKE) stage3 $(MAKE) stage3
ifeq "$(TARGETPLATFORM)" "i386-unknown-mingw32"
ifneq "$(WhatGccIsCalled)" ""
all :: stamp.inplace-gcc-lib
.PHONY: stamp.inplace-gcc-lib
# This is a hack to make Cabal able to find ld when we run tests with
# the inplace ghc. We should probably install all the gcc stuff in our
# tree somewhere, and then have install copy it from there rather than
# from the filesystem.
$(RM) -r compiler/gcc-lib
mkdir compiler/gcc-lib
cp $(GccDir)ld.exe compiler/gcc-lib
touch $@
clean ::
$(RM) -r compiler/gcc-lib
$(RM) -f inplace-gcc-lib
all :: bootstrap all :: bootstrap
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
Supports Markdown
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