Skip to content

Commit df27954

Browse files
committed
build: inline a number of single-use variables (NFC)
Inline a number of single use variables in the swift-lang build.
1 parent ff601ad commit df27954

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

tools/SourceKit/tools/swift-lang/CMakeLists.txt

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
11
if(NOT SWIFT_SOURCEKIT_USE_INPROC_LIBRARY AND SWIFT_BUILD_STDLIB AND SWIFT_BUILD_SDK_OVERLAY)
2-
set(EXTRA_COMPILE_FLAGS "-F" "${SWIFT_LIBRARY_OUTPUT_INTDIR}")
3-
set(SOURCEKITD_LINK_LIBS sourcekitd)
4-
set(INSTALLED_COMP sourcekit-xpc-service)
5-
set(DEPENDS_LIST "sourcekitd-test")
6-
72
# The build type of swiftlang should agree with stdlib
83
# This setting could avoid us adding additional search paths when building
94
# executables using SwiftLang.
@@ -25,11 +20,11 @@ if(NOT SWIFT_SOURCEKIT_USE_INPROC_LIBRARY AND SWIFT_BUILD_STDLIB AND SWIFT_BUILD
2520
GYB_SOURCES
2621
UIDs.swift.gyb
2722

28-
DEPENDS ${DEPENDS_LIST}
23+
DEPENDS sourcekitd-test
2924
SWIFT_MODULE_DEPENDS_OSX Darwin Foundation
30-
PRIVATE_LINK_LIBRARIES ${SOURCEKITD_LINK_LIBS}
31-
SWIFT_COMPILE_FLAGS ${EXTRA_COMPILE_FLAGS}
32-
INSTALL_IN_COMPONENT ${INSTALLED_COMP}
25+
PRIVATE_LINK_LIBRARIES sourcekitd
26+
SWIFT_COMPILE_FLAGS -F${SWIFT_LIBRARY_OUTPUT_INTDIR}
27+
INSTALL_IN_COMPONENT sourcekit-xpc-service
3328
DARWIN_INSTALL_NAME_DIR "@rpath"
3429
TARGET_SDKS ${SOURCEKIT_DEFAULT_TARGET_SDK}
3530
IS_STDLIB)

0 commit comments

Comments
 (0)