Skip to content

Commit 5b792b7

Browse files
committed
Fix the remaining few linker errors.
1 parent 7433dc9 commit 5b792b7

File tree

10 files changed

+32
-0
lines changed

10 files changed

+32
-0
lines changed

tools/SourceKit/tools/sourcekitd/bin/InProc/sourcekitdInProc.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,3 +200,9 @@ void postNotification(sourcekitd_response_t Notification) {
200200
NotificationReceiver(Notification);
201201
});
202202
}
203+
204+
extern "C" void parseTopLevelSwift(const char *buffer,
205+
void *declContext,
206+
void *astContext,
207+
void *outputContext,
208+
void (*)(void *, void *)) {}

tools/SourceKit/tools/sourcekitd/bin/XPC/Service/XPCService.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,3 +414,9 @@ void SKUIDToUIDMap::set(sourcekitd_uid_t SKDUID, UIdent UID) {
414414
this->Map[SKDUID] = UID;
415415
});
416416
}
417+
418+
extern "C" void parseTopLevelSwift(const char *buffer,
419+
void *declContext,
420+
void *astContext,
421+
void *outputContext,
422+
void (*)(void *, void *)) {}

tools/libSwiftSyntaxParser/libSwiftSyntaxParser.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -628,3 +628,9 @@ swiftparse_diagnostic_get_severity(swiftparser_diagnostic_t diag) {
628628
unsigned swiftparse_diagnostic_get_source_loc(swiftparser_diagnostic_t diag) {
629629
return static_cast<const DiagnosticDetail*>(diag)->Offset;
630630
}
631+
632+
extern "C" void parseTopLevelSwift(const char *buffer,
633+
void *declContext,
634+
void *astContext,
635+
void *outputContext,
636+
void (*)(void *, void *)) {}

tools/lldb-moduleimport-test/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ add_swift_host_tool(lldb-moduleimport-test
55
target_link_libraries(lldb-moduleimport-test
66
PRIVATE
77
swiftAST
8+
ASTGen
9+
swiftCore
810
swiftASTSectionImporter
911
swiftClangImporter
1012
swiftFrontend)

tools/sil-nm/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ add_swift_host_tool(sil-nm
44
)
55
target_link_libraries(sil-nm
66
PRIVATE
7+
ASTGen
8+
swiftCore
79
swiftClangImporter
810
swiftDemangling
911
swiftFrontend

tools/sil-opt/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ add_swift_host_tool(sil-opt
55
)
66
target_link_libraries(sil-opt
77
PRIVATE
8+
ASTGen
9+
swiftCore
810
swiftFrontend
911
swiftIRGen
1012
swiftSIL

tools/swift-ide-test/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ add_swift_host_tool(swift-ide-test
99
target_link_libraries(swift-ide-test
1010
PRIVATE
1111
swiftAST
12+
ASTGen
13+
swiftCore
1214
swiftDriver
1315
swiftFrontend
1416
swiftIDE

tools/swift-refactor/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ add_swift_host_tool(swift-refactor
55
)
66
target_link_libraries(swift-refactor
77
PRIVATE
8+
ASTGen
9+
swiftCore
810
swiftDriver
911
swiftFrontend
1012
swiftIDE)

tools/swift-remoteast-test/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ add_swift_host_tool(swift-remoteast-test
55
)
66
target_link_libraries(swift-remoteast-test
77
PRIVATE
8+
ASTGen
9+
swiftCore
810
swiftFrontendTool
911
swiftRemoteAST)
1012
set_target_properties(swift-remoteast-test PROPERTIES ENABLE_EXPORTS 1)

tools/swift-syntax-test/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ add_swift_host_tool(swift-syntax-test
77
)
88
target_link_libraries(swift-syntax-test
99
PRIVATE
10+
ASTGen
11+
swiftCore
1012
swiftAST
1113
swiftDriver
1214
swiftFrontend

0 commit comments

Comments
 (0)