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

Detect and throw error on "broken" GHCs #2711

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

martijnbastiaan
Copy link
Member

We know some GHC versions interact poorly with Clash on some platforms. Rather than making everyone hunt down the right tickets on their own, this patch makes Clash emit a fat warning error. Because these issues don't completely prevent Clash from working, we allow users to bypass the error by passing a flag -fclash-ignore-broken-ghcs.

Still TODO:

  • Write a changelog entry (see changelog/README.md)
  • Check copyright notices are up to date in edited files

{ what = "Clash starts really slowly from GHC 9.4.8 up to and including 9.6.2"
, solution = "Downgrade to GHC 9.4.7 or upgrade to GHC 9.6.3 or newer"
, issue = "https://github.com/clash-lang/clash-compiler/issues/2710"
, brokenOn = (All, GhcMinor 9 4 8) : [(All, GhcMinor 9 6 n) | n <- [1, 2]]
Copy link
Member

Choose a reason for hiding this comment

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

Instead of listing all broken (minor) versions individually, I think it would be better to specify ranges of broken versions.
Something like:

   , brokenOn = [(All, GhcRange { from = GhcMinor 9 4 8, to = GhcMinor 9 6 2 }]

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.

None yet

2 participants