File tree 2 files changed +1
-11
lines changed 2 files changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -66,11 +66,6 @@ endif()
66
66
67
67
message (STATUS "Module triple: ${SWIFT_MODULE_TRIPLE} " )
68
68
69
- # Force single-threaded-only syntax trees to eliminate the Darwin
70
- # dependency in the compiler.
71
- add_compile_definitions (
72
- $<$<COMPILE_LANGUAGE:Swift>:SWIFT_SYNTAX_ALWAYS_SINGLE_THREADED>
73
- )
74
69
if (SWIFTSYNTAX_ENABLE_ASSERTIONS)
75
70
add_compile_definitions (
76
71
$<$<COMPILE_LANGUAGE:Swift>:SWIFTSYNTAX_ENABLE_ASSERTIONS>
Original file line number Diff line number Diff line change 10
10
//
11
11
//===----------------------------------------------------------------------===//
12
12
13
- #if !SWIFT_SYNTAX_ALWAYS_SINGLE_THREADED
14
13
#if canImport(Darwin)
15
14
@_implementationOnly import Darwin
16
15
#elseif canImport(Glibc)
17
16
@_implementationOnly import Glibc
18
17
#elseif canImport(Musl)
19
18
@_implementationOnly import Musl
20
19
#endif
21
- #endif
22
20
23
21
/// Represent a string.
24
22
///
@@ -267,10 +265,7 @@ private func compareMemory(
267
265
_ count: Int
268
266
) -> Bool {
269
267
precondition ( count >= 0 )
270
- #if SWIFT_SYNTAX_ALWAYS_SINGLE_THREADED
271
- return UnsafeBufferPointer ( start: s1, count: count)
272
- . elementsEqual ( UnsafeBufferPointer ( start: s2, count: count) )
273
- #elseif canImport(Darwin)
268
+ #if canImport(Darwin)
274
269
return Darwin . memcmp ( s1, s2, count) == 0
275
270
#elseif canImport(Glibc)
276
271
return Glibc . memcmp ( s1, s2, count) == 0
You can’t perform that action at this time.
0 commit comments