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

Update the speed-up build guide #13

Open
ulysses4ever opened this issue Oct 24, 2021 · 2 comments
Open

Update the speed-up build guide #13

ulysses4ever opened this issue Oct 24, 2021 · 2 comments

Comments

@ulysses4ever
Copy link

ulysses4ever commented Oct 24, 2021

Following recent thread on ghc-devs, a better approach for a faster build seems to be:

 ./hadrian/build --flavour=default+no_profiled_libs+omit_pragmas --docs=none --skip-perf --freeze1 -j

This is now added to https://gitlab.haskell.org/ghc/ghc/-/wikis/building/hadrian

Maybe this can be reflected on ghc.dev?

@int-index
Copy link
Member

This command seems a bit too long compared to hadrian/build -j --flavour=Quick.

If this is the recommended way to do development, maybe we want --flavour=Dev or something that would be equivalent to --flavour=default+no_profiled_libs+omit_pragmas?

And I don’t think --skip-perf does anything when you’re building, it only matters when testing (definitely a good idea to mention it in the “Testing” section, though).

@ulysses4ever
Copy link
Author

I don't have a good feeling what would be more appropriate for ghc.dev. Feel free to close if you think none.

--flavour=Dev needs to be negotiated upstream, which I don't feel like doing right now. I posted a question on ghc-devs on why some/all of it is not a part of Quick, though.

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

No branches or pull requests

2 participants