Skip to content

Commit a1de111

Browse files
committed
CMake: Don't build _CSwiftSyntax module
`SwiftSyntax` module now doesn't have the dependency to `_CSwiftSyntax` anymore. It's not needed for CMake builds.
1 parent 20d083d commit a1de111

File tree

4 files changed

+0
-20
lines changed

4 files changed

+0
-20
lines changed

CMakeLists.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@ project(SwiftSyntax LANGUAGES C Swift)
1313
set(SWIFT_VERSION 5)
1414
set(CMAKE_Swift_LANGUAGE_VERSION ${SWIFT_VERSION})
1515

16-
# ensure Swift compiler can find _CSwiftSyntax
17-
add_compile_options($<$<COMPILE_LANGUAGE:Swift>:-I$<SEMICOLON>${CMAKE_CURRENT_SOURCE_DIR}/Sources/_CSwiftSyntax/include>)
18-
1916
set(CMAKE_Swift_MODULE_DIRECTORY ${CMAKE_BINARY_DIR}/swift)
2017

2118
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)

Sources/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
# See http://swift.org/LICENSE.txt for license information
77
# See http://swift.org/CONTRIBUTORS.txt for Swift project authors
88

9-
add_subdirectory(_CSwiftSyntax)
109
add_subdirectory(SwiftSyntax)
1110
add_subdirectory(SwiftDiagnostics)
1211
add_subdirectory(SwiftParser)

Sources/SwiftSyntax/CMakeLists.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
add_library(SwiftSyntax STATIC
1010
AbsolutePosition.swift
11-
AtomicCounter.swift
1211
BumpPtrAllocator.swift
1312
IncrementalParseTransition.swift
1413
SourceLength.swift
@@ -56,9 +55,6 @@ add_library(SwiftSyntax STATIC
5655
gyb_generated/syntax_nodes/SyntaxTypeNodes.swift
5756
)
5857

59-
target_link_libraries(SwiftSyntax PRIVATE
60-
_CSwiftSyntax)
61-
6258
set_property(GLOBAL APPEND PROPERTY SWIFTSYNTAX_EXPORTS SwiftSyntax)
6359

6460
# NOTE: workaround for CMake not setting up include flags yet

Sources/_CSwiftSyntax/CMakeLists.txt

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)