summaryrefslogtreecommitdiff
path: root/hadrian
diff options
context:
space:
mode:
authorAdam Sandberg Ericsson <adam@sandbergericsson.se>2020-12-20 12:36:41 +0100
committerMarge Bot <ben+marge-bot@smart-cactus.org>2020-12-22 01:26:44 -0500
commit3ef94d2704ed23b5bd6af612b0469f754505afe6 (patch)
tree7683bdf73219ec8cb1128162f15547926c511140 /hadrian
parent13874a7b6062d678a9a4b325a78faabe5250df0f (diff)
downloadhaskell-3ef94d2704ed23b5bd6af612b0469f754505afe6.tar.gz
hadrian: disable ghc package environments #18988
Diffstat (limited to 'hadrian')
-rw-r--r--hadrian/src/Settings/Builders/Ghc.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/hadrian/src/Settings/Builders/Ghc.hs b/hadrian/src/Settings/Builders/Ghc.hs
index 8b3074752e..240ae4b9df 100644
--- a/hadrian/src/Settings/Builders/Ghc.hs
+++ b/hadrian/src/Settings/Builders/Ghc.hs
@@ -213,6 +213,7 @@ packageGhcArgs = do
pkgId <- expr $ pkgIdentifier package
mconcat [ arg "-hide-all-packages"
, arg "-no-user-package-db"
+ , arg "-package-env -"
, packageDatabaseArgs
, libraryPackage ? arg ("-this-unit-id " ++ pkgId)
, map ("-package-id " ++) <$> getContextData depIds ]