X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2FnativeGen%2FPlatform.hs;h=20cb5f5e9685e37d9ae32b5f639306c318c913f2;hb=841e81e28f8cc711f624fdca122219a5bbde2fae;hp=6c6b124a1560dff4ca5cf5848f1b84db3dba3723;hpb=190b2d90f92f61eb802275729106b5d9fb9a7a7c;p=ghc-hetmet.git diff --git a/compiler/nativeGen/Platform.hs b/compiler/nativeGen/Platform.hs index 6c6b124..20cb5f5 100644 --- a/compiler/nativeGen/Platform.hs +++ b/compiler/nativeGen/Platform.hs @@ -46,7 +46,7 @@ data OS = OSUnknown | OSLinux | OSDarwin - | OSSolaris + | OSSolaris2 | OSMinGW32 | OSFreeBSD | OSOpenBSD @@ -58,6 +58,7 @@ osElfTarget :: OS -> Bool osElfTarget OSLinux = True osElfTarget OSFreeBSD = True osElfTarget OSOpenBSD = True +osElfTarget OSSolaris2 = True osElfTarget _ = False -- | This is the target platform as far as the #ifdefs are concerned. @@ -92,8 +93,8 @@ defaultTargetOS :: OS defaultTargetOS = OSLinux #elif darwin_TARGET_OS defaultTargetOS = OSDarwin -#elif solaris_TARGET_OS -defaultTargetOS = OSSolaris +#elif solaris2_TARGET_OS +defaultTargetOS = OSSolaris2 #elif mingw32_TARGET_OS defaultTargetOS = OSMinGW32 #elif freebsd_TARGET_OS