Skip to content

Commit

Permalink
Fix the build on Windows (disable hsc2hs --cross-safe)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
igfoo committed Mar 26, 2011
1 parent ff903cd commit 5c538c4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mk/config.mk.in
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +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))

Expand Down

0 comments on commit 5c538c4

Please sign in to comment.