diff options
author | Ian Lynagh <ian@well-typed.com> | 2013-04-21 18:19:14 +0100 |
---|---|---|
committer | Ian Lynagh <ian@well-typed.com> | 2013-04-21 18:19:14 +0100 |
commit | ca33aa89d924e432838fda4efa5116c355d29ff9 (patch) | |
tree | 7924029fde58c0e109a20f59cc101aa4c27f7d7d /mk | |
parent | e7817396e8ec5c45689b1c7d6fa852623bb12b33 (diff) | |
download | haskell-ca33aa89d924e432838fda4efa5116c355d29ff9.tar.gz |
pass the correct -Dxxx_HOST_ARCH and -Dxxx_HOST_OS to hsc2hs; Fixes #7761.
Patch from Stephen Blackheath.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/config.mk.in | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mk/config.mk.in b/mk/config.mk.in index ca7f521dfb..55f57568be 100644 --- a/mk/config.mk.in +++ b/mk/config.mk.in @@ -558,6 +558,9 @@ ifeq "$(CrossCompiling)" "YES" SRC_HSC2HS_OPTS_STAGE1 += --cross-compile SRC_HSC2HS_OPTS_STAGE2 += --cross-compile endif +SRC_HSC2HS_OPTS_STAGE0 += --cflag=-D$(HostArch_CPP)_HOST_ARCH=1 --cflag=-D$(HostOS_CPP)_HOST_OS=1 +SRC_HSC2HS_OPTS_STAGE1 += --cflag=-D$(TargetArch_CPP)_HOST_ARCH=1 --cflag=-D$(TargetOS_CPP)_HOST_OS=1 +SRC_HSC2HS_OPTS_STAGE2 += --cflag=-D$(TargetArch_CPP)_HOST_ARCH=1 --cflag=-D$(TargetOS_CPP)_HOST_OS=1 ifeq "$(TARGETPLATFORM)" "i386-unknown-mingw32" WINDRES = $(INPLACE_MINGW)/bin/windres |