summaryrefslogtreecommitdiff
path: root/hadrian/src/Settings/Packages.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 /hadrian/src/Settings/Packages.hs
parentf691f0c21dcc576e02313123e8b091e241d23b51 (diff)
downloadhaskell-0c0a15a8541a9119536ee17849d8390cb21ab764.tar.gz
Rename STAGE macro to GHC_STAGE
To avoid polluting the macro namespace
Diffstat (limited to 'hadrian/src/Settings/Packages.hs')
-rw-r--r--hadrian/src/Settings/Packages.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/hadrian/src/Settings/Packages.hs b/hadrian/src/Settings/Packages.hs
index 20bd114480..6c6b00064c 100644
--- a/hadrian/src/Settings/Packages.hs
+++ b/hadrian/src/Settings/Packages.hs
@@ -58,7 +58,7 @@ packageArgs = do
pure ["-O0"] ]
, builder (Cabal Setup) ? mconcat
- [ arg $ "--ghc-option=-DSTAGE=" ++ show (fromEnum stage + 1)
+ [ arg $ "--ghc-option=-DGHC_STAGE=" ++ show (fromEnum stage + 1)
, arg "--disable-library-for-ghci"
, anyTargetOs ["openbsd"] ? arg "--ld-options=-E"
, flag GhcUnregisterised ? arg "--ghc-option=-DNO_REGS"