[Git][ghc/ghc][wip/backports-9.8] hadrian-ghci-multi: Pass -this-package-name in unit response files
Ben Gamari (@bgamari)
gitlab at gitlab.haskell.org
Wed Nov 20 23:24:19 UTC 2024
Ben Gamari pushed to branch wip/backports-9.8 at Glasgow Haskell Compiler / GHC
Commits:
e267aa7f by Ben Gamari at 2024-11-20T18:19:58-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
=====================================
@@ -86,9 +86,10 @@ multiSetup pkg_s = do
let rexp m = ["-reexported-module", m]
let hidir = root </> "interfaces" </> pkgPath p
writeFile' (resp_file root p) (intercalate "\n" (th_hack arg_list
- ++ modules cd
+ ++ 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/e267aa7fa2cfc10e97571d14a76ca9a0dc4a668f
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/e267aa7fa2cfc10e97571d14a76ca9a0dc4a668f
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/20241120/ba344c64/attachment-0001.html>
More information about the ghc-commits
mailing list