Commit a447de51 authored by Adam Gundry's avatar Adam Gundry
Browse files

Take configured compiler into account in cabal exec (fixes #2278)

parent a25c1669
......@@ -39,7 +39,7 @@ module Distribution.Client.Sandbox (
updateInstallDirs,
-- FIXME: move somewhere else
configPackageDB', configCompilerAux'
configPackageDB', configCompilerAux', getPersistOrConfigCompiler
) where
import Distribution.Client.Setup
......
......@@ -100,6 +100,7 @@ import Distribution.Client.Sandbox (sandboxInit
,updateInstallDirs
,configCompilerAux'
,getPersistOrConfigCompiler
,configPackageDB')
import Distribution.Client.Sandbox.PackageEnvironment
(setPackageDB
......@@ -1158,7 +1159,7 @@ execAction execFlags extraArgs globalFlags = do
let verbosity = fromFlag (execVerbosity execFlags)
(useSandbox, config) <- loadConfigOrSandboxConfig verbosity globalFlags
let configFlags = savedConfigureFlags config
(comp, platform, conf) <- configCompilerAux' configFlags
(comp, platform, conf) <- getPersistOrConfigCompiler configFlags
exec verbosity useSandbox comp platform conf extraArgs
userConfigAction :: UserConfigFlags -> [String] -> GlobalFlags -> IO ()
......
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