move hschooks.c to ghc/, and enable it
authorSimon Marlow <marlowsd@gmail.com>
Fri, 11 Sep 2009 14:07:02 +0000 (14:07 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Fri, 11 Sep 2009 14:07:02 +0000 (14:07 +0000)
ghc/ghc.mk
ghc/hschooks.c [moved from compiler/parser/hschooks.c with 93% similarity]

index 46b2df5..e5cb843 100644 (file)
@@ -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)
similarity index 93%
rename from compiler/parser/hschooks.c
rename to ghc/hschooks.c
index 4878021..2224b02 100644 (file)
@@ -5,6 +5,9 @@ in instead of the defaults.
 */
 
 #include "Rts.h"
+#if __GLASGOW_HASKELL__ <611
+#include "RtsFlags.h"
+#endif
 
 #include "HsFFI.h"