diff options
Diffstat (limited to 'hadrian/src/Environment.hs')
-rw-r--r-- | hadrian/src/Environment.hs | 16 |
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" |