Skip to content

Commit

Permalink
Don't use "--with-ghcjs" with old cabal
Browse files Browse the repository at this point in the history
Fix to the fix for #1052
  • Loading branch information
mgsloan committed Oct 7, 2015
1 parent 3906811 commit c11ad03
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Stack/Build/Execute.hs
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,9 @@ ensureConfig newConfigCache pkgDir ExecuteEnv {..} announce cabal cabalfp = do
deleteCaches pkgDir
announce
menv <- getMinimalEnvOverride
exes <- forM (words "ghc ghcjs") $ \name -> do
let programNames =
if eeCabalPkgVer < $(mkVersion "1.22") then ["ghc"] else ["ghc", "ghcjs"]
exes <- forM programNames $ \name -> do
mpath <- findExecutable menv name
return $ case mpath of
Nothing -> []
Expand Down

0 comments on commit c11ad03

Please sign in to comment.