Commit b105281a authored by Alexis Williams's avatar Alexis Williams

Add warning when library installation isn't possible

parent 03abd929
......@@ -88,7 +88,7 @@ import Distribution.Types.UnqualComponentName
import Distribution.Verbosity
( Verbosity, normal, lessVerbose )
import Distribution.Simple.Utils
( wrapText, die', notice
( wrapText, die', notice, warn
, withTempDirectory, createDirectoryIfMissingVerbose )
import Distribution.Utils.Generic
( writeFileAtomic )
......@@ -403,6 +403,9 @@ installAction (configFlags, configExFlags, installFlags, haddockFlags)
$ Map.toList $ targetsMap buildCtx
runProjectPostBuildPhase verbosity baseCtx buildCtx buildOutcomes
unless supportsPkgEnvFiles $
warn verbosity "The current compiler doesn't support safely installing libraries. (GHC 8.0+ only)"
let
baseEntries =
GhcEnvFileClearPackageDbStack
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment