diff options
author | Paolo Capriotti <p.capriotti@gmail.com> | 2012-03-07 14:20:31 +0000 |
---|---|---|
committer | Paolo Capriotti <p.capriotti@gmail.com> | 2012-03-07 14:20:31 +0000 |
commit | 28f783f1c367784e0adcac2447682061a38f2ba3 (patch) | |
tree | b735034e09e762916cd748f137b655bdeec752c0 | |
parent | 5e383469a9cb1fc17af3882f6217e5382a80fc67 (diff) | |
download | haskell-28f783f1c367784e0adcac2447682061a38f2ba3.tar.gz |
Add Haiku platform (#5828)
-rw-r--r-- | aclocal.m4 | 5 | ||||
-rw-r--r-- | compiler/utils/Platform.hs | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/aclocal.m4 b/aclocal.m4 index 05470196dd..6d80ad3759 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -223,7 +223,10 @@ AC_DEFUN([FPTOOLS_SET_HASKELL_PLATFORM_VARS], netbsd) test -z "[$]2" || eval "[$]2=OSNetBSD" ;; - dragonfly|osf1|osf3|hpux|linuxaout|freebsd2|cygwin32|gnu|nextstep2|nextstep3|sunos4|ultrix|irix|aix|haiku) + haiku) + test -z "[$]2" || eval "[$]2=OSHaiku" + ;; + dragonfly|osf1|osf3|hpux|linuxaout|freebsd2|cygwin32|gnu|nextstep2|nextstep3|sunos4|ultrix|irix|aix) test -z "[$]2" || eval "[$]2=OSUnknown" ;; *) diff --git a/compiler/utils/Platform.hs b/compiler/utils/Platform.hs index 66f51e64e6..47dd7798cd 100644 --- a/compiler/utils/Platform.hs +++ b/compiler/utils/Platform.hs @@ -58,6 +58,7 @@ data OS | OSOpenBSD | OSNetBSD | OSKFreeBSD + | OSHaiku deriving (Read, Show, Eq) -- | ARM Instruction Set Architecture and Extensions @@ -91,6 +92,7 @@ osElfTarget OSSolaris2 = True osElfTarget OSDarwin = False osElfTarget OSMinGW32 = False osElfTarget OSKFreeBSD = True +osElfTarget OSHaiku = True osElfTarget OSUnknown = False -- Defaulting to False is safe; it means don't rely on any -- ELF-specific functionality. It is important to have a default for |