summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Marlow <marlowsd@gmail.com>2009-09-11 14:07:02 +0000
committerSimon Marlow <marlowsd@gmail.com>2009-09-11 14:07:02 +0000
commit02ad6e66c67e486c84678f2fc8cc73396b755722 (patch)
tree373e7c629c61b8aaccdf535f5f90a6f2502e0409
parent4e1b5ce4d026c1b8344b45d03f8702dbf011db50 (diff)
downloadhaskell-02ad6e66c67e486c84678f2fc8cc73396b755722.tar.gz
move hschooks.c to ghc/, and enable it
-rw-r--r--ghc/ghc.mk4
-rw-r--r--ghc/hschooks.c (renamed from compiler/parser/hschooks.c)3
2 files changed, 7 insertions, 0 deletions
diff --git a/ghc/ghc.mk b/ghc/ghc.mk
index 46b2df5d57..e5cb843843 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
index 4878021a8b..2224b0210e 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"