Skip to content

Commit

Permalink
Use a supported way to pass ghc args via runghc
Browse files Browse the repository at this point in the history
  • Loading branch information
harendra-kumar committed Aug 24, 2016
1 parent 8619824 commit e84c548
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 e84c548

Please sign in to comment.