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

Fix the platform string for GNU/Hurd #9434

Merged
merged 1 commit into from
Nov 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Cabal/src/Distribution/Simple/GHC/Internal.hs
Original file line number Diff line number Diff line change
Expand Up @@ -785,6 +785,7 @@ ghcOsString :: OS -> String
ghcOsString Windows = "mingw32"
ghcOsString OSX = "darwin"
ghcOsString Solaris = "solaris2"
ghcOsString Hurd = "gnu"
ghcOsString other = prettyShow other

-- | GHC's rendering of its platform and compiler version string as used in
Expand Down
11 changes: 11 additions & 0 deletions changelog.d/pr-9434
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
synopsis: Fix the platform string for GNU/Hurd
packages: Cabal
prs: #9434

description: {

Depending who you ask, GNU/Hurd will be labelled "gnu" or "hurd". The autotools
use "gnu", so ghc follows this for installed files, even if the ghc source code
uses OSHurd. We thus need to add the translation between the two.

}
Loading