Skip to content

Commit 15400c3

Browse files
authored
Set build-swift-stdlib-unicode-data=0 for the freestanding preset (#41258)
1 parent a669123 commit 15400c3

10 files changed

+13
-0
lines changed

stdlib/public/stubs/Unicode/UnicodeGrapheme.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ __swift_uint8_t _swift_stdlib_getGraphemeBreakProperty(__swift_uint32_t scalar)
6969

7070
SWIFT_RUNTIME_STDLIB_INTERNAL
7171
__swift_bool _swift_stdlib_isLinkingConsonant(__swift_uint32_t scalar) {
72+
#if !SWIFT_STDLIB_ENABLE_UNICODE_DATA
73+
swift::swift_abortDisabledUnicodeSupport();
74+
#else
7275
auto idx = _swift_stdlib_getScalarBitArrayIdx(scalar,
7376
_swift_stdlib_linkingConsonant,
7477
_swift_stdlib_linkingConsonant_ranks);
@@ -78,4 +81,5 @@ __swift_bool _swift_stdlib_isLinkingConsonant(__swift_uint32_t scalar) {
7881
}
7982

8083
return true;
84+
#endif
8185
}

test/stdlib/Character.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// RUN: %target-run-stdlib-swift
22
// REQUIRES: executable_test
3+
// UNSUPPORTED: freestanding
34

45
import StdlibUnittest
56
import Swift

test/stdlib/CharacterProperties.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// RUN: %target-run-simple-swift
22
// REQUIRES: executable_test
3+
// UNSUPPORTED: freestanding
34

45
import StdlibUnittest
56

test/stdlib/RawRepresentable-tricky-hashing.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// RUN: %target-run-simple-swift
22
// REQUIRES: executable_test
3+
// UNSUPPORTED: freestanding
34

45
import StdlibUnittest
56

test/stdlib/StringDeconstruction.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// RUN: %target-run-simple-swift
22
// REQUIRES: executable_test
3+
// UNSUPPORTED: freestanding
34

45
import StdlibUnittest
56
defer { runAllTests() }

test/stdlib/StringIndex.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// RUN: %target-run-simple-swift
22
// REQUIRES: executable_test
3+
// UNSUPPORTED: freestanding
34

45
import StdlibUnittest
56

test/stdlib/ThreadLocalStorage.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// RUN: %target-run-stdlib-swift
22
// REQUIRES: executable_test
33
// REQUIRES: OS=macosx
4+
// UNSUPPORTED: freestanding
45

56
import StdlibUnittest
67
import Swift

test/stdlib/UnicodeScalarPropertiesTests.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// RUN: %target-run-simple-swift %t
22
// REQUIRES: executable_test
3+
// UNSUPPORTED: freestanding
34

45
import StdlibUnittest
56

test/stdlib/subString.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// RUN: %target-run-simple-swift
22
// REQUIRES: executable_test
3+
// UNSUPPORTED: freestanding
34

45
import StdlibUnittest
56

utils/build-presets.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2536,6 +2536,7 @@ swift-stdlib-enable-vector-types=0
25362536
swift-stdlib-experimental-hermetic-seal-at-link=1
25372537
swift-stdlib-disable-instantiation-caches=1
25382538
swift-stdlib-has-type-printing=0
2539+
build-swift-stdlib-unicode-data=0
25392540

25402541
[preset: stdlib_S_standalone_minimal_macho_x86_64,build]
25412542
mixin-preset=

0 commit comments

Comments
 (0)