mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Previously, we used SWIFT_INCLUDE_TESTS to control if we created build rules for binaries just used to test as well as running the tests as well. In this commit, I changed this behavior by adding an option called SWIFT_INCLUDE_TEST_BINARIES. This will allow for the stage 1 swift build to build and install test binaries into the just built toolchain for use by the stage 2 swift that builds the stdlib.
15 lines
417 B
CMake
15 lines
417 B
CMake
set(SOURCEKITD_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/sourcekitd)
|
|
|
|
include_directories(
|
|
${SOURCEKITD_SOURCE_DIR}/include
|
|
)
|
|
|
|
add_swift_lib_subdirectory(sourcekitd)
|
|
if(LibEdit_FOUND AND LibEdit_HAS_UNICODE)
|
|
add_swift_tool_subdirectory(sourcekitd-repl)
|
|
endif()
|
|
if(SWIFT_INCLUDE_TESTS OR SWIFT_INCLUDE_TEST_BINARIES)
|
|
add_swift_tool_subdirectory(sourcekitd-test)
|
|
add_swift_tool_subdirectory(complete-test)
|
|
endif()
|