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

ghc: wire up new binary ghc for bootstrapping #33129

Merged
merged 1 commit into from Dec 28, 2017

Conversation

domenkozar
Copy link
Member

@domenkozar domenkozar commented Dec 28, 2017

This change brings development feedback loop improvement
from a couple of ghc rebuilds to only one for working on generic
builder.

To completely eliminate the rebuilds, use two nixpkgs clones
and point boot packages to the unmodified one.

Fixes #19926

Tested only on linux, I've found no regressions.

@peti
Copy link
Member

peti commented Dec 28, 2017

Pushed in e7fee0e327afc61edb0a9f086baa4f1528af174c; test builds are running at https://hydra.nixos.org/jobset/nixpkgs/haskell-updates.

Copy link
Member

@Ericson2314 Ericson2314 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just two scattered thoughts from me on my phone. Looks good!

inherit (bootPkgs) alex happy;
inherit buildPlatform targetPlatform;
selfPkgs = packages.ghcHEAD;
};
ghcjs = packages.ghc7103.callPackage ../development/compilers/ghcjs {
bootPkgs = packages.ghc7103;
bootPkgs = packages.ghc821Binary;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IIRC GHCJS needs older but I forget

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't bothered since it's broken before this PR.

@@ -6,6 +6,9 @@ let
"ghc6102Binary"
"ghc704Binary"
"ghc742Binary"
"ghc784Binary"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This mean we can get rid of those ignored integer simple flags?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed! Thanks

This change brings development feedback loop improvement
from a couple of ghc rebuilds to only one for working on generic
builder.

To completely eliminate the rebuilds, use two nixpkgs clones
and point boot packages to the unmodified one.
@peti peti merged commit d54384b into NixOS:master Dec 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants