Make emoji properties Darwin only.

Ubuntu 16.04 doesn't have a recent enough ICU to support these; we need a better long-term solution, such as bundling ICU with the toolchain.
This commit is contained in:
Tony Allevato
2018-07-09 18:42:42 -07:00
parent d0e93acb00
commit b454e8d0f4
2 changed files with 10 additions and 0 deletions

View File

@@ -581,6 +581,12 @@ extension Unicode.Scalar.Properties {
return _hasBinaryProperty(__swift_stdlib_UCHAR_CHANGES_WHEN_NFKC_CASEFOLDED)
}
#if os(macOS) || os(iOS) || os(watchOS) || os(tvOS)
// FIXME: These properties were introduced in ICU 57, but Ubuntu 16.04 comes
// with ICU 55 so the values won't be correct there. Exclude them on
// non-Darwin platforms for now; bundling ICU with the toolchain would resolve
// this and other inconsistencies (https://bugs.swift.org/browse/SR-6076).
/// A Boolean property indicating whether the scalar has an emoji
/// presentation, whether or not it is the default.
///
@@ -656,6 +662,7 @@ extension Unicode.Scalar.Properties {
public var isEmojiModifierBase: Bool {
return _hasBinaryProperty(__swift_stdlib_UCHAR_EMOJI_MODIFIER_BASE)
}
#endif
}
/// Case mapping properties.