summaryrefslogtreecommitdiff
path: root/ghc
diff options
context:
space:
mode:
authorIan Lynagh <ian@well-typed.com>2013-03-03 22:49:41 +0000
committerIan Lynagh <ian@well-typed.com>2013-03-03 22:52:50 +0000
commit2b85372ca18115bb1d6363256fcea6f54e415bed (patch)
tree1ccbbac74ddbb89430cc07cbdedd9b48a5a44662 /ghc
parent8640750e136f98767fc0678b35a20a6fb7970241 (diff)
downloadhaskell-2b85372ca18115bb1d6363256fcea6f54e415bed.tar.gz
Automatically add the $(exeext) to program names
We now define _PROGNAME, and _PROG is automatically defined with $(exeext). This will shortly automatically use the right exeext depending on what stage it is being compiled with (exeext may be different for different stages when cross-compiling).
Diffstat (limited to 'ghc')
-rw-r--r--ghc/ghc.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/ghc/ghc.mk b/ghc/ghc.mk
index 3466b51e6f..44dd126d37 100644
--- a/ghc/ghc.mk
+++ b/ghc/ghc.mk
@@ -72,9 +72,9 @@ ifeq "$(GhcProfiled)" "YES"
ghc_stage2_PROGRAM_WAY = p
endif
-ghc_stage1_PROG = ghc-stage1$(exeext)
-ghc_stage2_PROG = ghc-stage2$(exeext)
-ghc_stage3_PROG = ghc-stage3$(exeext)
+ghc_stage1_PROGNAME = ghc-stage1
+ghc_stage2_PROGNAME = ghc-stage2
+ghc_stage3_PROGNAME = ghc-stage3
ghc_stage1_SHELL_WRAPPER = YES
ghc_stage2_SHELL_WRAPPER = YES