mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Set build-swift-stdlib-unicode-data=0 for the freestanding preset (#41258)
This commit is contained in:
committed by
GitHub
parent
a669123842
commit
15400c3ef7
@@ -69,6 +69,9 @@ __swift_uint8_t _swift_stdlib_getGraphemeBreakProperty(__swift_uint32_t scalar)
|
|||||||
|
|
||||||
SWIFT_RUNTIME_STDLIB_INTERNAL
|
SWIFT_RUNTIME_STDLIB_INTERNAL
|
||||||
__swift_bool _swift_stdlib_isLinkingConsonant(__swift_uint32_t scalar) {
|
__swift_bool _swift_stdlib_isLinkingConsonant(__swift_uint32_t scalar) {
|
||||||
|
#if !SWIFT_STDLIB_ENABLE_UNICODE_DATA
|
||||||
|
swift::swift_abortDisabledUnicodeSupport();
|
||||||
|
#else
|
||||||
auto idx = _swift_stdlib_getScalarBitArrayIdx(scalar,
|
auto idx = _swift_stdlib_getScalarBitArrayIdx(scalar,
|
||||||
_swift_stdlib_linkingConsonant,
|
_swift_stdlib_linkingConsonant,
|
||||||
_swift_stdlib_linkingConsonant_ranks);
|
_swift_stdlib_linkingConsonant_ranks);
|
||||||
@@ -78,4 +81,5 @@ __swift_bool _swift_stdlib_isLinkingConsonant(__swift_uint32_t scalar) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
// RUN: %target-run-stdlib-swift
|
// RUN: %target-run-stdlib-swift
|
||||||
// REQUIRES: executable_test
|
// REQUIRES: executable_test
|
||||||
|
// UNSUPPORTED: freestanding
|
||||||
|
|
||||||
import StdlibUnittest
|
import StdlibUnittest
|
||||||
import Swift
|
import Swift
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
// RUN: %target-run-simple-swift
|
// RUN: %target-run-simple-swift
|
||||||
// REQUIRES: executable_test
|
// REQUIRES: executable_test
|
||||||
|
// UNSUPPORTED: freestanding
|
||||||
|
|
||||||
import StdlibUnittest
|
import StdlibUnittest
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
// RUN: %target-run-simple-swift
|
// RUN: %target-run-simple-swift
|
||||||
// REQUIRES: executable_test
|
// REQUIRES: executable_test
|
||||||
|
// UNSUPPORTED: freestanding
|
||||||
|
|
||||||
import StdlibUnittest
|
import StdlibUnittest
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
// RUN: %target-run-simple-swift
|
// RUN: %target-run-simple-swift
|
||||||
// REQUIRES: executable_test
|
// REQUIRES: executable_test
|
||||||
|
// UNSUPPORTED: freestanding
|
||||||
|
|
||||||
import StdlibUnittest
|
import StdlibUnittest
|
||||||
defer { runAllTests() }
|
defer { runAllTests() }
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
// RUN: %target-run-simple-swift
|
// RUN: %target-run-simple-swift
|
||||||
// REQUIRES: executable_test
|
// REQUIRES: executable_test
|
||||||
|
// UNSUPPORTED: freestanding
|
||||||
|
|
||||||
import StdlibUnittest
|
import StdlibUnittest
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
// RUN: %target-run-stdlib-swift
|
// RUN: %target-run-stdlib-swift
|
||||||
// REQUIRES: executable_test
|
// REQUIRES: executable_test
|
||||||
// REQUIRES: OS=macosx
|
// REQUIRES: OS=macosx
|
||||||
|
// UNSUPPORTED: freestanding
|
||||||
|
|
||||||
import StdlibUnittest
|
import StdlibUnittest
|
||||||
import Swift
|
import Swift
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
// RUN: %target-run-simple-swift %t
|
// RUN: %target-run-simple-swift %t
|
||||||
// REQUIRES: executable_test
|
// REQUIRES: executable_test
|
||||||
|
// UNSUPPORTED: freestanding
|
||||||
|
|
||||||
import StdlibUnittest
|
import StdlibUnittest
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
// RUN: %target-run-simple-swift
|
// RUN: %target-run-simple-swift
|
||||||
// REQUIRES: executable_test
|
// REQUIRES: executable_test
|
||||||
|
// UNSUPPORTED: freestanding
|
||||||
|
|
||||||
import StdlibUnittest
|
import StdlibUnittest
|
||||||
|
|
||||||
|
|||||||
@@ -2536,6 +2536,7 @@ swift-stdlib-enable-vector-types=0
|
|||||||
swift-stdlib-experimental-hermetic-seal-at-link=1
|
swift-stdlib-experimental-hermetic-seal-at-link=1
|
||||||
swift-stdlib-disable-instantiation-caches=1
|
swift-stdlib-disable-instantiation-caches=1
|
||||||
swift-stdlib-has-type-printing=0
|
swift-stdlib-has-type-printing=0
|
||||||
|
build-swift-stdlib-unicode-data=0
|
||||||
|
|
||||||
[preset: stdlib_S_standalone_minimal_macho_x86_64,build]
|
[preset: stdlib_S_standalone_minimal_macho_x86_64,build]
|
||||||
mixin-preset=
|
mixin-preset=
|
||||||
|
|||||||
Reference in New Issue
Block a user