Skip to content
Snippets Groups Projects
Commit e9290c3e authored by Teo Camarasu's avatar Teo Camarasu
Browse files

Make template-haskell a stage1 package

We enable building stage1 ghc with the boot
version of template-haskell (and all its dependencies).
Both template-haskell and ghc-boot-th are promoted to stage1 packages.

We add CPP to the modules converting between TH and GHC ASTs
to deal with differences between TH versions.

The canonical list of language extensions lives in `ghc-boot-th`.
As this is a dependency of template-haskell, we must use the boot
version when building stage1 GHC.
In that case, we add a duplicate list of language extensions
to `ghc-boot` with the full list of language extensions for the in-tree
version of GHC. We avoid duplicating the file by using an in-tree symlink.

Resolves #23536
parent da2a10ce
No related branches found
No related tags found
Loading
Checking pipeline status
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