summaryrefslogtreecommitdiff
path: root/includes/MachDeps.h
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2019-09-19 10:31:06 -0400
committerMarge Bot <ben+marge-bot@smart-cactus.org>2019-10-09 16:21:14 -0400
commit0c0a15a8541a9119536ee17849d8390cb21ab764 (patch)
tree5ad55179918684d38c4fcff8a502d3d8c5b460e1 /includes/MachDeps.h
parentf691f0c21dcc576e02313123e8b091e241d23b51 (diff)
downloadhaskell-0c0a15a8541a9119536ee17849d8390cb21ab764.tar.gz
Rename STAGE macro to GHC_STAGE
To avoid polluting the macro namespace
Diffstat (limited to 'includes/MachDeps.h')
-rw-r--r--includes/MachDeps.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/includes/MachDeps.h b/includes/MachDeps.h
index fd13e3315a..5160e381e0 100644
--- a/includes/MachDeps.h
+++ b/includes/MachDeps.h
@@ -25,7 +25,7 @@
* In those cases code change assumed target defines like SIZEOF_HSINT
* are applied to host platform, not target platform.
*
- * So what should be used instead in STAGE=1?
+ * So what should be used instead in GHC_STAGE=1?
*
* To get host's equivalent of SIZEOF_HSINT you can use Bits instances:
* Data.Bits.finiteBitSize (0 :: Int)
@@ -36,9 +36,9 @@
* wORD_SIZE :: DynFlags -> Int
* wORD_SIZE dflags = pc_WORD_SIZE (platformConstants dflags)
*
- * Hence we hide these macros from -DSTAGE=1
+ * Hence we hide these macros from GHC_STAGE=1
*/
-#if !defined(STAGE) || STAGE >= 2
+#if !defined(GHC_STAGE) || GHC_STAGE >= 2
/* Sizes of C types come from here... */
#include "ghcautoconf.h"
@@ -120,4 +120,4 @@
#define TAG_MASK ((1 << TAG_BITS) - 1)
-#endif /* !defined(STAGE) || STAGE >= 2 */
+#endif /* !defined(GHC_STAGE) || GHC_STAGE >= 2 */