[Git][ghc/ghc][master] hadrian-ghci-multi: Pass -this-package-name in unit response files
Marge Bot (@marge-bot)
gitlab at gitlab.haskell.org
Mon Nov 25 08:56:17 UTC 2024
Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC
Commits:
6e1fbda7 by Ben Gamari at 2024-11-25T03:55:44-05:00
hadrian-ghci-multi: Pass -this-package-name in unit response files
As noted in #25509, the `-this-package-name` must be passed for each
package to ensure that GHC can response references to the packages'
exposed modules via package-qualified imports. Fix this.
Closes #25509.
- - - - -
1 changed file:
- hadrian/src/Rules/ToolArgs.hs
Changes:
=====================================
hadrian/src/Rules/ToolArgs.hs
=====================================
@@ -99,7 +99,8 @@ multiSetup pkg_s = do
writeFile' (resp_file root p) (intercalate "\n" (normalise_ghc arg_list
++ modules cd
++ concatMap rexp (reexportModules cd)
- ++ ["-outputdir", hidir]))
+ ++ ["-outputdir", hidir,
+ "-this-package-name", pkgName p]))
return (resp_file root p)
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/6e1fbda7deaa44d9ce759234bbff920022c2c542
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/6e1fbda7deaa44d9ce759234bbff920022c2c542
You're receiving this email because of your account on gitlab.haskell.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20241125/b2410e64/attachment.html>
More information about the ghc-commits
mailing list