-
Notifications
You must be signed in to change notification settings - Fork 81
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
Add GHC bindist version 9.4.5 and 9.6.1 #1890
Conversation
8763a5b
to
e381162
Compare
Determine if the current GHC bindist was build by Hadrian. We assume this is the case if the `config.mk.in` file exists in the root directory of the distribution; it was located in the `mk` subfolder in older bindists. We enable a relocatable build, ie. install, by setting `RelocatableBuild` to `YES` when invoking make. This simplifies the folder structure of the installation. Also, we no longer need to patch the bin scripts to make them relocatable.
f6e1179
to
b85636a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! I have a small comment but otherwise it looks good to me 👍
haskell/ghc_bindist.bzl
Outdated
}.get(version) | ||
"9.4.5": ["@rules_haskell//haskell:assets/ghc_9_4_5_win.patch"], | ||
"9.6.1": ["@rules_haskell//haskell:assets/ghc_9_6_1_win.patch"], | ||
}.get(version, "".format()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the default value "".format()
here on purpose ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch! I started to refactor this, but then decided against it. I'll fix it.
There is no `gcc.exe` anymore, but both of `cc.exe`.
b85636a
to
42ee20e
Compare
This adds GHC bindists for the latest stable GHC releases for 9.4 and 9.6. Fixes #1889
Notable changes are that starting with GHC 9.6.1 the bindist packages are packaged with Hadrian and thus are relocatable without patching the scripts in
bin
.Note that the test-patches workflow has been run for these successfully, except for GHC 9.4.5 on Windows. See #1892 For the time being, until this gets resolved, I have excluded this version from the
test-ghc-patches
workflow.