summaryrefslogtreecommitdiff
path: root/compiler/main/DynFlags.hs
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 /compiler/main/DynFlags.hs
parentf691f0c21dcc576e02313123e8b091e241d23b51 (diff)
downloadhaskell-0c0a15a8541a9119536ee17849d8390cb21ab764.tar.gz
Rename STAGE macro to GHC_STAGE
To avoid polluting the macro namespace
Diffstat (limited to 'compiler/main/DynFlags.hs')
-rw-r--r--compiler/main/DynFlags.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/main/DynFlags.hs b/compiler/main/DynFlags.hs
index 6176e2b155..0079ec3d80 100644
--- a/compiler/main/DynFlags.hs
+++ b/compiler/main/DynFlags.hs
@@ -320,7 +320,7 @@ import qualified EnumSet
import GHC.Foreign (withCString, peekCString)
import qualified GHC.LanguageExtensions as LangExt
-#if STAGE >= 2
+#if GHC_STAGE >= 2
-- used by SHARED_GLOBAL_VAR
import Foreign (Ptr)
#endif
@@ -5741,7 +5741,7 @@ defaultGlobalDynFlags =
settings = panic "v_unsafeGlobalDynFlags: settings not initialised"
llvmConfig = panic "v_unsafeGlobalDynFlags: llvmConfig not initialised"
-#if STAGE < 2
+#if GHC_STAGE < 2
GLOBAL_VAR(v_unsafeGlobalDynFlags, defaultGlobalDynFlags, DynFlags)
#else
SHARED_GLOBAL_VAR( v_unsafeGlobalDynFlags