projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make DsMeta catch up with LastStmt (fix Trac #5235)
[ghc-hetmet.git]
/
compiler
/
utils
/
Platform.hs
diff --git
a/compiler/utils/Platform.hs
b/compiler/utils/Platform.hs
index
8f07b47
..
f3749ca
100644
(file)
--- a/
compiler/utils/Platform.hs
+++ b/
compiler/utils/Platform.hs
@@
-67,11
+67,14
@@
target32Bit p = case platformArch p of
-- | This predicates tells us whether the OS supports ELF-like shared libraries.
osElfTarget :: OS -> Bool
-- | This predicates tells us whether the OS supports ELF-like shared libraries.
osElfTarget :: OS -> Bool
-osElfTarget OSLinux = True
-osElfTarget OSFreeBSD = True
-osElfTarget OSOpenBSD = True
+osElfTarget OSLinux = True
+osElfTarget OSFreeBSD = True
+osElfTarget OSOpenBSD = True
osElfTarget OSSolaris2 = True
osElfTarget OSSolaris2 = True
-osElfTarget _ = False
+osElfTarget OSDarwin = False
+osElfTarget OSMinGW32 = False
+osElfTarget OSUnknown = panic "Don't know if OSUnknown is elf"
+
-- | This is the target platform as far as the #ifdefs are concerned.
-- These are set in includes/ghcplatform.h by the autoconf scripts
-- | This is the target platform as far as the #ifdefs are concerned.
-- These are set in includes/ghcplatform.h by the autoconf scripts