[Git][ghc/ghc][wip/T25509] hadrian-ghci-multi: Pass -this-package-name in unit response files

Ben Gamari (@bgamari) gitlab at gitlab.haskell.org
Fri Nov 22 21:56:59 UTC 2024



Ben Gamari pushed to branch wip/T25509 at Glasgow Haskell Compiler / GHC


Commits:
c73dc2da by Ben Gamari at 2024-11-22T16:56:52-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/c73dc2da30e56fb266123fcea4b11eae72dfee49

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/c73dc2da30e56fb266123fcea4b11eae72dfee49
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/20241122/c8bdf3e9/attachment-0001.html>


More information about the ghc-commits mailing list