From bfe71c85014588b15ce390866f40de7b385443d1 Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Wed, 16 Jul 2008 22:27:19 +0000 Subject: [PATCH] Windows fixes --- compiler/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/compiler/Makefile b/compiler/Makefile index dbc4725..f32e020 100644 --- a/compiler/Makefile +++ b/compiler/Makefile @@ -59,6 +59,7 @@ clean distclean:: $(RM) -f prelude/primops.txt $(RM) -f $(PRIMOP_BITS) $(RM) -f $(CONFIG_HS) + $(RM) -f parser/Parser.y ifeq "$(GhcWithInterpreter)" "YES" CONFIGURE_FLAGS_STAGE2 += --flags=ghci @@ -140,7 +141,10 @@ ifeq "$(HOSTPLATFORM)" "i386-unknown-mingw32" # stdcall, and doesn't generate the Foo@8 name for them # As it's only important for older compilers we don't need to do anything # for stage2+. -CONFIGURE_FLAGS_STAGE1 += --ghc-options='-\#include -\#include ' +CONFIGURE_FLAGS_STAGE1 += --ghc-option='-\#include' \ + --ghc-option='""' \ + --ghc-option='-\#include' \ + --ghc-option='""' endif # ghc_strlen percolates through so many modules that it is easier to get its @@ -189,6 +193,8 @@ boot :: stage_dirs boot :: $(CONFIG_HS) +boot :: parser/Parser.y + $(CONFIG_HS) : $(FPTOOLS_TOP)/mk/config.mk @$(RM) -f $(CONFIG_HS) @echo "Creating $(CONFIG_HS) ... " -- 1.7.10.4