File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed
tools/sourcekitd/bin/XPC/Client Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -388,7 +388,7 @@ macro(add_sourcekit_xpc_service name framework_target)
388
388
endif ()
389
389
390
390
set (XPCSERVICE_NAME ${name} )
391
- set (XPCSERVICE_IDENTIFIER "com.apple. ${name} " )
391
+ set (XPCSERVICE_IDENTIFIER "${name} . ${SOURCEKIT_VERSION_STRING} " )
392
392
set (XPCSERVICE_BUNDLE_VERSION "${SOURCEKIT_VERSION_STRING} " )
393
393
set (XPCSERVICE_SHORT_VERSION_STRING "1.0" )
394
394
configure_file (
Original file line number Diff line number Diff line change @@ -16,6 +16,8 @@ add_sourcekit_framework(sourcekitd
16
16
INSTALL_IN_COMPONENT sourcekit-xpc-service
17
17
)
18
18
19
+ add_definitions (-DSOURCEKIT_XPCSERVICE_IDENTIFIER= "SourceKitService.${SOURCEKIT_VERSION_STRING} " )
20
+
19
21
if (SOURCEKIT_BUILT_STANDALONE )
20
22
# Create the symlink necessary to find the swift stdlib.
21
23
add_custom_command (TARGET sourcekitd POST_BUILD
Original file line number Diff line number Diff line change @@ -251,7 +251,7 @@ void sourcekitd::initialize() {
251
251
initializeTracing ();
252
252
253
253
assert (!GlobalConn);
254
- GlobalConn = xpc_connection_create (" com.apple.SourceKitService " , NULL );
254
+ GlobalConn = xpc_connection_create (SOURCEKIT_XPCSERVICE_IDENTIFIER , NULL );
255
255
256
256
xpc_connection_set_event_handler (GlobalConn, ^(xpc_object_t event) {
257
257
xpc_type_t type = xpc_get_type (event);
You can’t perform that action at this time.
0 commit comments