Skip to content
Snippets Groups Projects
Commit 6cc80766 authored by Matthew Pickering's avatar Matthew Pickering Committed by Marge Bot
Browse files

driver: Add implicit package dependencies for template-haskell package

When TemplateHaskellQuotes is enabled, we also generate programs which
mention symbols from the template-haskell module. So that package is
added conditionally if the extension is turned on.

We should really do the same for other wired-in packages:

* base
* ghc-bignum
* ghc-prim
* rts

When we link an executable, we must also link against these
libraries. In accordance with every other package, these dependencies
should  be added into the direct dependencies for a module automatically
and end up in the interface file to record the fact the object file was
created by linking against these packages.

Unfortunately it is not so easy to work out when symbols from each of
these libraries ends up in the generated program. You might think that
`base` would always be used but the `ghc-prim` package doesn't depend
on `base`, so you have to be a bit careful and this futher enhancement
is left to a future patch.
parent 0bb78838
Branches wip/t22690
No related tags found
1 merge request!7054Disable warnings for unused goto labels
Pipeline #37475 failed
Loading
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