summaryrefslogtreecommitdiff
path: root/utils/hsc2hs
diff options
context:
space:
mode:
authorSimon Marlow <simonmar@microsoft.com>2007-07-31 11:49:25 +0000
committerSimon Marlow <simonmar@microsoft.com>2007-07-31 11:49:25 +0000
commit085025b1e45218eb4f9ef7fda055e23f03b8e1b7 (patch)
tree357c6bed0fcc65afc26626b5e97bbd9255ba308a /utils/hsc2hs
parentf74a6116eb089646eec41755eccbe0eb88a99ac0 (diff)
downloadhaskell-085025b1e45218eb4f9ef7fda055e23f03b8e1b7.tar.gz
compile the -inplace programs using $(HC), not $(GHC)
$(UseStage1) modifies $(HC) rather than $(GHC)
Diffstat (limited to 'utils/hsc2hs')
-rw-r--r--utils/hsc2hs/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/hsc2hs/Makefile b/utils/hsc2hs/Makefile
index c60705f81e..e06855088f 100644
--- a/utils/hsc2hs/Makefile
+++ b/utils/hsc2hs/Makefile
@@ -48,7 +48,7 @@ $(INPLACE_HS): Makefile $(FPTOOLS_TOP)/mk/config.mk
echo "main = do args <- getArgs; rawSystem \"$(TOP_ABS)/$(GHC_HSC2HS_DIR_REL)/$(HS_PROG)\" (\"--template=$(TOP_ABS)/$(GHC_HSC2HS_DIR_REL)/template-hsc.h\":\"--cc=$(CC)\":\"--ld=$(CC)\"$(patsubst %,:\"%\",$(extra_flags)):\"--cflag=-D__GLASGOW_HASKELL__=$(ProjectVersionInt)\":\"-I$(TOP_ABS)/$(GHC_INCLUDE_DIR_REL)\":\"-I$(TOP_ABS)/gmp/gmpbuild\":args) >>= exitWith" >> $@
$(INPLACE_PROG): $(INPLACE_HS)
- $(GHC) --make $< -o $@
+ $(HC) --make $< -o $@
all :: $(INPLACE_PROG)