File tree 2 files changed +4
-15
lines changed 2 files changed +4
-15
lines changed Original file line number Diff line number Diff line change @@ -81,3 +81,7 @@ add_swift_syntax_library(SwiftSyntax
81
81
generated /syntaxNodes/SyntaxNodesQRS.swift
82
82
generated /syntaxNodes/SyntaxNodesTUVWXYZ.swift
83
83
)
84
+
85
+ target_link_swift_syntax_libraries(SwiftSyntax PUBLIC
86
+ _SwiftSyntaxCShims
87
+ )
Original file line number Diff line number Diff line change 10
10
//
11
11
//===----------------------------------------------------------------------===//
12
12
13
- #if SWIFT_SYNTAX_BUILD_USING_CMAKE
14
- // The CMake bulid of swift-syntax does not build the _AtomicBool module because swift-syntax's CMake build is
15
- // Swift-only. Fake an `AtomicBool` type that is not actually atomic. This should be acceptable for the following
16
- // reasons:
17
- // - `AtomicBool` is only used for the `hasParent` assertion, so release compilers don't rely on it
18
- // - The compiler is single-threaded so it it is safe from race conditions on `AtomicBool`.
19
- fileprivate struct AtomicBool {
20
- var value : Bool
21
-
22
- init ( initialValue: Bool ) {
23
- self . value = initialValue
24
- }
25
- }
26
- #else
27
13
import _SwiftSyntaxCShims
28
- #endif
29
14
30
15
/// A syntax arena owns the memory for all syntax nodes within it.
31
16
///
You can’t perform that action at this time.
0 commit comments