Skip to content

Commit

Permalink
add GNU Hurd OS
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Desfosses committed Mar 1, 2015
1 parent 6655552 commit 931b86c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Cabal/Distribution/System.hs
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ data OS = Linux | Windows | OSX -- tier 1 desktop OSs
| DragonFly
| Solaris | AIX | HPUX | IRIX -- ageing Unix OSs
| HaLVM -- bare metal / VMs / hypervisors
| Hurd -- GNU's microkernel
| IOS | Android -- mobile OSs
| Ghcjs
| OtherOS String
Expand All @@ -84,13 +85,15 @@ knownOSs = [Linux, Windows, OSX
,FreeBSD, OpenBSD, NetBSD, DragonFly
,Solaris, AIX, HPUX, IRIX
,HaLVM
,Hurd
,IOS, Android
,Ghcjs]

osAliases :: ClassificationStrictness -> OS -> [String]
osAliases Permissive Windows = ["mingw32", "win32", "cygwin32"]
osAliases Compat Windows = ["mingw32", "win32"]
osAliases _ OSX = ["darwin"]
osAliases _ Hurd = ["gnu"]
osAliases Permissive FreeBSD = ["kfreebsdgnu"]
osAliases Compat FreeBSD = ["kfreebsdgnu"]
osAliases Permissive Solaris = ["solaris2"]
Expand Down

0 comments on commit 931b86c

Please sign in to comment.