let arch: Arch?
The parsed arch.
var archName: String
var darwinLinkerPlatformVersion: Version
var darwinPlatform: DarwinPlatform?
Returns the DarwinPlatform
for this triple, or nil
if it is a non-Darwin platform.
var description: String
var dynamicLibraryExtension: String
The file extension for dynamic libraries (eg. .dll
, .so
, or .dylib
)
var dynamicLibraryPrefix: String
The file prefix for dynamic libraries
let environment: Environment?
The parsed Environment type.
var environmentName: String
var executableExtension: String
var isWasm: Bool
var nsbundleExtension: String
The file extension for Foundation-style bundle.
let objectFormat: ObjectFormat?
The object format type.
let os: OS?
The parsed OS.
var osName: String
Returns the name of the OS from the triple string.
var osNameUnversioned: String
var osVersion: Version
Parse the version number from the OS name component of the triple, if present.
var staticLibraryExtension: String
The file extension for static libraries.
let subArch: SubArch?
The parsed subarchitecture.
let triple: String
The original triple string.
var tripleString: String
let vendor: Vendor?
The parsed vendor.
var vendorName: String
subscript(dynamicMember: KeyPath<OS, Bool>) -> Bool
Triple
proxies predicates from Triple.OS
, returning false
for an unknown OS.
func encode(to: Encoder) throws
func isAndroid() -> Bool
func isApple() -> Bool
func isDarwin() -> Bool
func isLinux() -> Bool
func isOpenBSD() -> Bool
func isRuntimeCompatible(with: Triple) -> Bool
Returns true
if code compiled for triple
can run on self
value of Triple
.
func isWASI() -> Bool
func isWindows() -> Bool
func platformName(conflatingDarwin: Bool) -> String?
The platform name, i.e. the name clang uses to identify this target in its resource directory.
func supports(FeatureAvailability) -> Bool
Checks whether the triple supports the specified feature, i.e., the feature has been introduced by the OS and version indicated by the triple.
func tripleString(forPlatformVersion: String) -> String
Returns the triple string for the given platform version.
func version(for: DarwinPlatform?) -> Triple.Version
Returns the OS version equivalent for the given platform, converting and defaulting various representations.