From 8840510480cd39224708950d70568c0d336302a6 Mon Sep 17 00:00:00 2001 From: Brian Gesiak Date: Sat, 28 May 2016 17:45:07 -0400 Subject: [PATCH] [SourceKit] Conditionally use in-proc for repl Most SourceKit build products are linked against either sourcekitd (which uses XPC) or sourcekitdInProc (which does not) based on the `SWIFT_SOURCEKIT_USE_INPROC_LIBRARY` CMake option. Adapt `sourcekitd-repl` to fit this established pattern. --- tools/SourceKit/tools/sourcekitd-repl/CMakeLists.txt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tools/SourceKit/tools/sourcekitd-repl/CMakeLists.txt b/tools/SourceKit/tools/sourcekitd-repl/CMakeLists.txt index ab0969f21e1b6..bb4602330bfef 100644 --- a/tools/SourceKit/tools/sourcekitd-repl/CMakeLists.txt +++ b/tools/SourceKit/tools/sourcekitd-repl/CMakeLists.txt @@ -1,6 +1,12 @@ +if(SWIFT_SOURCEKIT_USE_INPROC_LIBRARY) + set(SOURCEKITD_REPL_DEPEND sourcekitdInProc) +else() + set(SOURCEKITD_REPL_DEPEND sourcekitd) +endif() + add_sourcekit_executable(sourcekitd-repl sourcekitd-repl.cpp - DEPENDS sourcekitd edit + DEPENDS ${SOURCEKITD_REPL_DEPEND} edit COMPONENT_DEPENDS support )