summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2019-10-03 20:41:44 -0400
committerMarge Bot <ben+marge-bot@smart-cactus.org>2019-10-09 16:21:14 -0400
commit817c1a947d50a070613815e02a530f83d9078eb8 (patch)
treea044789c0cbd1a3a73ed495afc599167aff39bbf /includes
parent63a5371d420686f4959a5be9e5a0d3d647577615 (diff)
downloadhaskell-817c1a947d50a070613815e02a530f83d9078eb8.tar.gz
Define GHC_STAGE in headers instead of command-line
Diffstat (limited to 'includes')
-rw-r--r--includes/ghc.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/includes/ghc.mk b/includes/ghc.mk
index a19e6109e1..eee72128b0 100644
--- a/includes/ghc.mk
+++ b/includes/ghc.mk
@@ -179,6 +179,8 @@ $$(includes_$1_H_PLATFORM) : includes/ghc.mk includes/Makefile | $$$$(dir $$$$@)
@echo "#if !defined(__GHCPLATFORM_H__)" > $$@
@echo "#define __GHCPLATFORM_H__" >> $$@
@echo >> $$@
+ @echo "#define GHC_STAGE $1" >> $$@
+ @echo >> $$@
@echo "#define BuildPlatform_TYPE $(BuildPlatform_$1_CPP)" >> $$@
@echo "#define HostPlatform_TYPE $(HostPlatform_$1_CPP)" >> $$@
@echo >> $$@