X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=mk%2Fconfig.mk.in;h=b478997b62be9ff9d82ebc2b8f13a38abbb60159;hb=5c538c457d1215d7f5b5107ac808a24af805f870;hp=4204c7b5f5b1d59662593d250f8b2f93f993ed08;hpb=74430537272aecdc8fd85b4877cec76cc042c8ad;p=ghc-hetmet.git diff --git a/mk/config.mk.in b/mk/config.mk.in index 4204c7b..b478997 100644 --- a/mk/config.mk.in +++ b/mk/config.mk.in @@ -560,6 +560,12 @@ ifeq "$(TARGETPLATFORM)" "ia64-unknown-linux" CONF_CC_OPTS += -G0 endif +# The .hsc files aren't currently safe for cross-compilation on Windows: +# libraries\haskeline\.\System\Console\Haskeline\Backend\Win32.hsc:160 +# directive "let" is not safe for cross-compilation +ifneq "$(Windows)" "YES" +SRC_HSC2HS_OPTS += --cross-safe +endif SRC_HSC2HS_OPTS += $(addprefix --cflag=,$(filter-out -O,$(SRC_CC_OPTS) $(CONF_CC_OPTS_STAGE0))) SRC_HSC2HS_OPTS += $(foreach d,$(GMP_INCLUDE_DIRS),-I$(d))