Skip to content

Commit b79dae1

Browse files
Merge pull request commercialhaskell#2532 from commercialhaskell/runghc
Use a supported way to pass ghc args via runghc
2 parents 8619824 + e84c548 commit b79dae1

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/main/Main.hs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -770,7 +770,8 @@ execCmd ExecOpts {..} go@GlobalOpts{..} =
770770

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

775776
getGhcCmd prefix menv pkgs args = do
776777
wc <- getWhichCompiler

0 commit comments

Comments
 (0)