-
Notifications
You must be signed in to change notification settings - Fork 233
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Also adds some tooling/docs for adding new ghc versions (see `docs/adding-new-ghc.md`)
- Loading branch information
1 parent
d6cf503
commit cacfba0
Showing
107 changed files
with
15,701 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Adding a new GHC version to haskell.nix | ||
|
||
## Update `overlays/bootstrap.nix` | ||
|
||
Each ghc version is defined in this file. Duplicate one of the exising | ||
ghc version definitions and replace the version numbers. Make sure | ||
you update the `spec.sha256` or the other versions source will be used. | ||
Check the LLVM version that should be used in the | ||
[ghc wiki](https://gitlab.haskell.org/ghc/ghc/-/wikis/commentary/compiler/backends/llvm/installing). | ||
|
||
|
||
## Update the materialized files | ||
|
||
In the haskell.nix repo run: | ||
|
||
``` | ||
mkdir materialized/ghc884 | ||
nix-build scripts/check-compiler-materialization --argstr compiler-nix-name ghc884 | ||
``` | ||
|
||
The `nix-build` command will fail with something like: | ||
|
||
``` | ||
Materialized nix used for dummy-data-x86_64-unknown-linux-musl-ghc-8.10.1 incorrect. To fix run: /nix/store/wnwpyrhv4nxgyljz3f20gdpspjxvm7h4-updateMaterialized | ||
``` | ||
|
||
Run the `updateMaterialized` script and repat the `nix-build` until it no longer fails. | ||
If the failure is not a problem with materialization and no `updateMaterialized` script | ||
is provided then you may need to fix the failure another way or (if it only relates to | ||
one of the cross compilers) modify `scripts/check-compiler-materialization/default.nix` | ||
so that it skips that compiler. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...-ghc/aarch64-unknown-linux-gnu-aarch64-unknown-linux-gnu-ghc-8.10.1-x86_64-linux/ghc/info
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.