Skip to content

Commit e3c7d23

Browse files
authored
Merge pull request #62160 from rintaro/delete-swiftCompilerModules_SwiftSyntax
Remove swiftCompilerModules_SwiftSyntax library
2 parents 20aa5b5 + 2f50d03 commit e3c7d23

File tree

5 files changed

+1
-25
lines changed

5 files changed

+1
-25
lines changed

SwiftCompilerSources/CMakeLists.txt

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#
1717
function(add_swift_compiler_module module)
1818
cmake_parse_arguments(ALSM
19-
"ADD_TO_SYNTAXPARSE"
19+
""
2020
""
2121
"DEPENDS;SOURCES"
2222
${ARGN})
@@ -35,7 +35,6 @@ function(add_swift_compiler_module module)
3535

3636
set_property(TARGET ${target_name} PROPERTY module_name ${module})
3737
set_property(TARGET ${target_name} PROPERTY module_depends ${ALSM_DEPENDS})
38-
set_property(TARGET ${target_name} PROPERTY add_to_syntaxparse ${ALSM_ADD_TO_SYNTAXPARSE})
3938

4039
get_property(modules GLOBAL PROPERTY swift_compiler_modules)
4140
set_property(GLOBAL PROPERTY swift_compiler_modules ${modules} ${module})
@@ -134,16 +133,13 @@ function(add_swift_compiler_modules_library name)
134133

135134
set(all_obj_files)
136135
set(all_module_targets)
137-
set(syntaxparse_obj_files)
138-
set(syntaxparse_module_targets)
139136
get_property(modules GLOBAL PROPERTY "swift_compiler_modules")
140137
foreach(module ${modules})
141138

142139
set(module_target "SwiftModule${module}")
143140
get_target_property(module ${module_target} "module_name")
144141
get_target_property(sources ${module_target} SOURCES)
145142
get_target_property(dependencies ${module_target} "module_depends")
146-
get_target_property(add_to_syntaxparse ${module_target} "add_to_syntaxparse")
147143
set(deps, "")
148144
if (dependencies)
149145
foreach(dep_module ${dependencies})
@@ -163,9 +159,6 @@ function(add_swift_compiler_modules_library name)
163159
set_property(TARGET ${module_target} PROPERTY "module_file" "${module_file}")
164160

165161
set(all_obj_files ${all_obj_files} ${module_obj_file})
166-
if (add_to_syntaxparse)
167-
set(syntaxparse_obj_files ${syntaxparse_obj_files} ${module_obj_file})
168-
endif()
169162
set(c_include_paths
170163
# LLVM modules and headers.
171164
"${LLVM_MAIN_INCLUDE_DIR}"
@@ -201,9 +194,6 @@ function(add_swift_compiler_modules_library name)
201194

202195
set("${module}_dep_target" ${dep_target})
203196
set(all_module_targets ${all_module_targets} ${dep_target})
204-
if (add_to_syntaxparse)
205-
set(syntaxparse_module_targets ${syntaxparse_module_targets} ${dep_target})
206-
endif()
207197
endforeach()
208198

209199
# Create a static library containing all module object files.
@@ -217,15 +207,6 @@ function(add_swift_compiler_modules_library name)
217207
add_dependencies(${name} ${all_module_targets})
218208
set_target_properties(${name} PROPERTIES LINKER_LANGUAGE CXX)
219209
set_property(GLOBAL APPEND PROPERTY SWIFT_BUILDTREE_EXPORTS ${name})
220-
221-
if (XCODE)
222-
set(syntaxparse_obj_files force_lib.c ${syntaxparse_obj_files})
223-
endif()
224-
add_library("${name}_SwiftSyntax" STATIC ${syntaxparse_obj_files})
225-
add_dependencies("${name}_SwiftSyntax" ${syntaxparse_module_targets})
226-
set_target_properties("${name}_SwiftSyntax" PROPERTIES LINKER_LANGUAGE CXX)
227-
set_property(GLOBAL APPEND PROPERTY SWIFT_BUILDTREE_EXPORTS "${name}_SwiftSyntax")
228-
229210
endfunction()
230211

231212

@@ -235,7 +216,6 @@ add_swift_host_library(swiftCompilerStub OBJECT stubs.cpp)
235216
if (NOT BOOTSTRAPPING_MODE)
236217

237218
add_library(swiftCompilerModules ALIAS swiftCompilerStub)
238-
add_library(swiftCompilerModules_SwiftSyntax ALIAS swiftCompilerStub)
239219

240220
else()
241221
# Note: "Swift" is not added intentionally here, because it would break

SwiftCompilerSources/Sources/AST/CMakeLists.txt

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

99
add_swift_compiler_module(AST
10-
ADD_TO_SYNTAXPARSE
1110
DEPENDS
1211
Basic
1312
SOURCES

SwiftCompilerSources/Sources/Basic/CMakeLists.txt

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

99
add_swift_compiler_module(Basic
10-
ADD_TO_SYNTAXPARSE
1110
SOURCES
1211
SourceLoc.swift
1312
Utils.swift)

SwiftCompilerSources/Sources/Parse/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ endif()
1414
add_swift_compiler_module(Parse
1515
DEPENDS
1616
${dependencies}
17-
ADD_TO_SYNTAXPARSE
1817
SOURCES
1918
Parse.swift
2019
Regex.swift)

SwiftCompilerSources/Sources/_RegexParser/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,5 @@ endforeach()
1616
message(STATUS "Using Experimental String Processing library for libswift _RegexParser (${EXPERIMENTAL_STRING_PROCESSING_SOURCE_DIR}).")
1717

1818
add_swift_compiler_module(_CompilerRegexParser
19-
ADD_TO_SYNTAXPARSE
2019
SOURCES
2120
"${LIBSWIFT_REGEX_PARSER_SOURCES}")

0 commit comments

Comments
 (0)