only define GHCI if $(GhcWithInterpreter)=YES, also add -threaded
[ghc-hetmet.git] / compiler / Makefile.ghcbin
index 626ec51..0ae9ff8 100644 (file)
@@ -13,12 +13,17 @@ stage=2
 
 HC=$(GHC_STAGE1)
 SRC_HC_OPTS += -package ghc
-SRC_HC_OPTS += -DGHCI -DBREAKPOINT
 SRC_HC_OPTS += -Istage$(stage)
 SRC_HC_OPTS += \
   -cpp -fglasgow-exts -fno-generics -Rghc-timing \
   -I. -IcodeGen -InativeGen -Iparser
 
+ifeq "$(GhcWithInterpreter)" "YES"
+SRC_HC_OPTS += -DGHCI -DBREAKPOINT
+endif
+
+SRC_HC_OPTS += -threaded
+
 odir=stage$(stage)
 
 HS_SRCS = main/Main.hs