From 74880a8273639d26b7d492d8808df69debaa4a53 Mon Sep 17 00:00:00 2001 From: rrt Date: Fri, 19 Jan 2001 15:02:38 +0000 Subject: [PATCH] [project @ 2001-01-19 15:02:38 by rrt] Path mangling for Windows to try to make ghc-inplace work when installed on other drives than C:. --- mk/config.mk.in | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/mk/config.mk.in b/mk/config.mk.in index 2fe53d5..ce53b28 100644 --- a/mk/config.mk.in +++ b/mk/config.mk.in @@ -385,10 +385,22 @@ NoFibHcOpts = -O # setting the TMPDIR env var would have no effect in the build tree. DEFAULT_TMPDIR = /tmp +ifeq "$(TARGETPLATFORM)" "i386-unknown-cygwin32" +DEFAULT_TMPDIR = C:/TEMP +endif +ifeq "$(TARGETPLATFORM)" "i386-unknown-mingw32" +DEFAULT_TMPDIR = C:/TEMP +endif # FPTOOLS_TOP: the top of the fptools hierarchy, absolute path. FPTOOLS_TOP_ABS = @hardtop@ +ifeq "$(TARGETPLATFORM)" "i386-unknown-cygwin32" +FPTOOLS_TOP_ABS = $(patsubst /cygdrive/%/,%:/,@hardtop@) +endif +ifeq "$(TARGETPLATFORM)" "i386-unknown-mingw32" +FPTOOLS_TOP_ABS = $(patsubst /cygdrive/%/,%:/,@hardtop@) +endif # # Installation directories, we don't use half of these, -- 1.7.10.4