Skip to content

Commit

Permalink
Merge pull request #2532 from commercialhaskell/runghc
Browse files Browse the repository at this point in the history
Use a supported way to pass ghc args via runghc
  • Loading branch information
harendra-kumar authored Aug 24, 2016
2 parents 8619824 + e84c548 commit b79dae1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -770,7 +770,8 @@ execCmd ExecOpts {..} go@GlobalOpts{..} =

getPkgOpts menv wc pkgs = do
ids <- mapM (getPkgId menv wc) pkgs
return $ map ("-package-id " ++) ids
let pkgIdOpts x = ["--ghc-arg=-package-id", "--ghc-arg=" ++ x]
return $ concatMap pkgIdOpts ids

getGhcCmd prefix menv pkgs args = do
wc <- getWhichCompiler
Expand Down

0 comments on commit b79dae1

Please sign in to comment.