OS

public enum OS : String, CaseIterable

Represents an operating system known to LLVM.

  • An unknown operating system.

    Declaration

    Swift

    case unknown = "UnknownOS"
  • The Ananas operating system.

    Declaration

    Swift

    case ananas = "Ananas"
  • The CloudABI operating system.

    Declaration

    Swift

    case cloudABI = "CloudABI"
  • The Darwin operating system.

    Declaration

    Swift

    case darwin = "Darwin"
  • The DragonFly operating system.

    Declaration

    Swift

    case dragonFly = "DragonFly"
  • The FreeBSD operating system.

    Declaration

    Swift

    case freeBSD = "FreeBSD"
  • The Fuchsia operating system.

    Declaration

    Swift

    case fuchsia = "Fuchsia"
  • iOS

    The iOS operating system.

    Declaration

    Swift

    case iOS = "IOS"
  • The GNU/kFreeBSD operating system.

    Declaration

    Swift

    case kFreeBSD = "KFreeBSD"
  • The Linux operating system.

    Declaration

    Swift

    case linux = "Linux"
  • lv2

    Sony’s PS3 operating system.

    Declaration

    Swift

    case lv2 = "Lv2"
  • The macOS operating system.

    Declaration

    Swift

    case macOS = "MacOSX"
  • The NetBSD operating system.

    Declaration

    Swift

    case netBSD = "NetBSD"
  • The OpenBSD operating system.

    Declaration

    Swift

    case openBSD = "OpenBSD"
  • The Solaris operating system.

    Declaration

    Swift

    case solaris = "Solaris"
  • The Win32 operating system.

    Declaration

    Swift

    case win32 = "Win32"
  • The Haiku operating system.

    Declaration

    Swift

    case haiku = "Haiku"
  • The Minix operating system.

    Declaration

    Swift

    case minix = "Minix"
  • The RTEMS operating system.

    Declaration

    Swift

    case rtems = "RTEMS"
  • Native Client

    Declaration

    Swift

    case naCl = "NaCl"
  • cnk

    BG/P Compute-Node Kernel

    Declaration

    Swift

    case cnk = "CNK"
  • aix

    The AIX operating system.

    Declaration

    Swift

    case aix = "AIX"
  • NVIDIA CUDA

    Declaration

    Swift

    case cuda = "CUDA"
  • NVIDIA OpenCL

    Declaration

    Swift

    case nvcl = "NVCL"
  • AMD HSA Runtime

    Declaration

    Swift

    case amdHSA = "AMDHSA"
  • ps4

    Sony’s PS4 operating system.

    Declaration

    Swift

    case ps4 = "PS4"
  • The Intel MCU operating system.

    Declaration

    Swift

    case elfIAMCU = "ELFIAMCU"
  • Apple tvOS.

    Declaration

    Swift

    case tvOS = "TvOS"
  • Apple watchOS.

    Declaration

    Swift

    case watchOS = "WatchOS"
  • The Mesa 3D compute kernel.

    Declaration

    Swift

    case mesa3D = "Mesa3D"
  • The Contiki operating system.

    Declaration

    Swift

    case contiki = "Contiki"
  • AMD PAL Runtime.

    Declaration

    Swift

    case amdPAL = "AMDPAL"
  • HermitCore Unikernel/Multikernel.

    Declaration

    Swift

    case hermitCore = "HermitCore"
  • GNU/Hurd.

    Declaration

    Swift

    case hurd = "Hurd"
  • Experimental WebAssembly OS

    Declaration

    Swift

    case wasi = "WASI"
  • Returns whether the OS is unknown.

    Declaration

    Swift

    public var isUnknown: Bool { get }
  • Returns whether this a Mac OS X triple.

    For legacy reasons, LLVM supports both “darwin” and “osx” as macOS triples.

    Declaration

    Swift

    public var isMacOS: Bool { get }
  • Returns whether this an iOS triple.

    Declaration

    Swift

    public var isiOS: Bool { get }
  • Returns whether this an Apple tvOS triple.

    Declaration

    Swift

    public var isTvOS: Bool { get }
  • Returns whether this an Apple watchOS triple.

    Declaration

    Swift

    public var isWatchOS: Bool { get }
  • Returns whether this a “Darwin” OS (OS X, iOS, or watchOS).

    Declaration

    Swift

    public var isDarwin: Bool { get }
  • Returns whether the OS is NetBSD.

    Declaration

    Swift

    public var isNetBSD: Bool { get }
  • Returns whether the OS is OpenBSD.

    Declaration

    Swift

    public var isOpenBSD: Bool { get }
  • Returns whether the OS is FreeBSD.

    Declaration

    Swift

    public var isFreeBSD: Bool { get }
  • Returns whether the OS is Fuchsia.

    Declaration

    Swift

    public var isFuchsia: Bool { get }
  • Returns whether the OS is DragonFly.

    Declaration

    Swift

    public var isDragonFly: Bool { get }
  • Returns whether the OS is Solaris.

    Declaration

    Swift

    public var isSolaris: Bool { get }
  • Returns whether the OS is IAMCU.

    Declaration

    Swift

    public var isIAMCU: Bool { get }
  • Returns whether the OS is Contiki.

    Declaration

    Swift

    public var isContiki: Bool { get }
  • Returns whether the OS is Haiku.

    Declaration

    Swift

    public var isHaiku: Bool { get }
  • Returns whether the OS is Windows.

    Declaration

    Swift

    public var isWindows: Bool { get }
  • Returns whether the OS is NaCl (Native Client)

    Declaration

    Swift

    public var isNaCl: Bool { get }
  • Returns whether the OS is Linux.

    Declaration

    Swift

    public var isLinux: Bool { get }
  • Returns whether the OS is kFreeBSD.

    Declaration

    Swift

    public var isKFreeBSD: Bool { get }
  • Returns whether the OS is Hurd.

    Declaration

    Swift

    public var isHurd: Bool { get }
  • Returns whether the OS is WASI.

    Declaration

    Swift

    public var isWASI: Bool { get }
  • Returns whether the OS is AIX.

    Declaration

    Swift

    public var isAIX: Bool { get }