summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2011-04-23 13:40:52 +0100
committerIan Lynagh <igloo@earth.li>2011-04-23 13:40:52 +0100
commitf845e5f8339ead4b7189d5d1af6d882593af5dcc (patch)
treefb4b11ec5d464fbc1711855bdb7eca617edacde9 /mk
parent83e504bb061ff9dca79d72c92ed25a8d245d4cd9 (diff)
downloadhaskell-f845e5f8339ead4b7189d5d1af6d882593af5dcc.tar.gz
Make stage-specific CC variables
This allows different gcc's to be used when building different stages, which we need to do when cross-compiling.
Diffstat (limited to 'mk')
-rw-r--r--mk/config.mk.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/mk/config.mk.in b/mk/config.mk.in
index 4d93905e33..94342184b2 100644
--- a/mk/config.mk.in
+++ b/mk/config.mk.in
@@ -544,6 +544,10 @@ WhatGccIsCalled = @WhatGccIsCalled@
GccVersion = @GccVersion@
GccLT34 = @GccLT34@
CC = $(WhatGccIsCalled)
+CC_STAGE0 = $(CC)
+CC_STAGE1 = $(CC)
+CC_STAGE2 = $(CC)
+CC_STAGE3 = $(CC)
# C compiler and linker flags from configure (e.g. -m<blah> to select
# correct C compiler backend). The stage number is the stage of GHC