summaryrefslogtreecommitdiff
path: root/hadrian/src/Environment.hs
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2017-12-08 12:42:35 -0500
committerBen Gamari <ben@smart-cactus.org>2017-12-08 13:22:41 -0500
commit7733e44dd4ba7e7a0a9f3456e6ddc32decbcf5a3 (patch)
tree79c5e7151d760e6c7617d8450fb9ec2a10560989 /hadrian/src/Environment.hs
parent5695f462f604fc63cbb45a7f3073bc114f9b475f (diff)
downloadhaskell-7733e44dd4ba7e7a0a9f3456e6ddc32decbcf5a3.tar.gz
Rip out hadrian subtree
Sadly subtrees haven't worked quite as well as we would have liked for developers. See Hadrian #440.
Diffstat (limited to 'hadrian/src/Environment.hs')
-rw-r--r--hadrian/src/Environment.hs16
1 files changed, 0 insertions, 16 deletions
diff --git a/hadrian/src/Environment.hs b/hadrian/src/Environment.hs
deleted file mode 100644
index de43efa924..0000000000
--- a/hadrian/src/Environment.hs
+++ /dev/null
@@ -1,16 +0,0 @@
-module Environment (setupEnvironment) where
-
-import System.Environment
-
--- | The build system invokes many external builders whose behaviour is
--- influenced by the environment variables. We need to modify some of them
--- for better robustness of the build system.
-setupEnvironment :: IO ()
-setupEnvironment = do
- -- ghc-cabal refuses to work when GHC_PACKAGE_PATH is set (e.g. by Stack)
- unsetEnv "GHC_PACKAGE_PATH"
-
- -- in MinGW if PWD is set to a Windows "C:\\" style path then configure
- -- `pwd` will return the Windows path, and then modifying $PATH will fail.
- -- See https://github.com/snowleopard/hadrian/issues/189 for details.
- unsetEnv "PWD"