Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support virtual_modules #47

Draft
wants to merge 3 commits into
base: wavewave/no-more-special-base
Choose a base branch
from

Conversation

wavewave
Copy link
Collaborator

the same as Cabal virtual-modules. This is necessary to support ghc-prim compilation.

The modules listed in virtual_modules are added to exposed modules in package.conf without actual source codes.

wavewave added a commit to MercuryTechnologies/buck2-ghc-build that referenced this pull request Sep 27, 2024
based on MercuryTechnologies/buck2-prelude#47

* retry ghc-prim build.
now -this-unit-id ghc-prim with use_same_package_name=True.
a little bit more progress.
* Success in building ghc-prim and ghc-bignum, ghc-internal depending on that in-tree lib!
by virtual_modules = ["GHC.Prim"]
* remove hard-coded paths (unnecessary)
* remove irrelevant comment now
to use the specified name as GHC package name.

In some special cases (especially GHC boot libraries), the package name
needs to be given as specified.
@wavewave wavewave force-pushed the wavewave/no-more-special-base branch from c2198e3 to 8f5f116 Compare October 3, 2024 13:13
the same as Cabal virtual-modules. This is necessary to support ghc-prim compilation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant