diff options
author | Ben Gamari <ben@smart-cactus.org> | 2021-10-30 11:08:57 -0400 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2021-12-01 03:09:21 -0500 |
commit | d8d57729e1630229b2810abfc7eda78c4a08eec8 (patch) | |
tree | e6db17763e86220270a87f0ef33dcb3fd141b81d /utils | |
parent | 91d1a773891e4b9fdb8d1d4f0bc4d6426d76b7cf (diff) | |
download | haskell-d8d57729e1630229b2810abfc7eda78c4a08eec8.tar.gz |
ghc-cabal: Manually specify -XHaskell2010
Otherwise we end up with issues like #19631 when bootstrapping using GHC
9.2 and above.
Fixes #19631.
Diffstat (limited to 'utils')
-rw-r--r-- | utils/ghc-cabal/ghc.mk | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/ghc-cabal/ghc.mk b/utils/ghc-cabal/ghc.mk index dfdc2d50c4..ca1cda5307 100644 --- a/utils/ghc-cabal/ghc.mk +++ b/utils/ghc-cabal/ghc.mk @@ -59,7 +59,8 @@ $(ghc-cabal_DIST_BINARY): $(CABAL_LEXER_DEP) utils/ghc-cabal/Main.hs $(TOUCH_DEP "$(GHC)" $(SRC_HC_OPTS) \ $(addprefix -optc, $(SRC_CC_OPTS) $(CONF_CC_OPTS_STAGE0)) \ $(addprefix -optl, $(SRC_LD_OPTS) $(CONF_GCC_LINKER_OPTS_STAGE0)) \ - -O0 \ + -O0 \ + -XHaskell2010 \ -hide-all-packages \ -package-env - \ $(addprefix -package , $(CABAL_BUILD_DEPS)) \ |