From: Simon Marlow Date: Fri, 11 Sep 2009 14:07:02 +0000 (+0000) Subject: move hschooks.c to ghc/, and enable it X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=02ad6e66c67e486c84678f2fc8cc73396b755722 move hschooks.c to ghc/, and enable it --- diff --git a/ghc/ghc.mk b/ghc/ghc.mk index 46b2df5..e5cb843 100644 --- a/ghc/ghc.mk +++ b/ghc/ghc.mk @@ -45,6 +45,10 @@ ghc_stage2_MODULES += GhciMonad GhciTags InteractiveUI endif ghc_stage3_MODULES = $(ghc_stage2_MODULES) +ghc_stage1_C_SRCS = hschooks.c +ghc_stage2_C_SRCS = hschooks.c +ghc_stage3_C_SRCS = hschooks.c + ghc_stage1_PROG = ghc-stage1$(exeext) ghc_stage2_PROG = ghc-stage2$(exeext) ghc_stage3_PROG = ghc-stage3$(exeext) diff --git a/compiler/parser/hschooks.c b/ghc/hschooks.c similarity index 93% rename from compiler/parser/hschooks.c rename to ghc/hschooks.c index 4878021..2224b02 100644 --- a/compiler/parser/hschooks.c +++ b/ghc/hschooks.c @@ -5,6 +5,9 @@ in instead of the defaults. */ #include "Rts.h" +#if __GLASGOW_HASKELL__ <611 +#include "RtsFlags.h" +#endif #include "HsFFI.h"