Skip to content

Commit

Permalink
Merge pull request haskell#9434 from sthibaul/master
Browse files Browse the repository at this point in the history
Fix the platform string for GNU/Hurd
  • Loading branch information
mergify[bot] authored Nov 16, 2023
2 parents d063048 + 1a89c9d commit a134b26
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
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.

}

0 comments on commit a134b26

Please sign in to comment.