Skip to content
Snippets Groups Projects
Commit 6e1fbda7 authored by Ben Gamari's avatar Ben Gamari Committed by Marge Bot
Browse files

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.
parent a021a493
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment