File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -94,6 +94,20 @@ add_swift_library(XCTest
94
94
-I${XCTEST_PATH_TO_FOUNDATION_BUILD}/Foundation
95
95
-I${XCTEST_PATH_TO_FOUNDATION_BUILD}/Foundation/usr/lib/swift )
96
96
97
+ # Temporary staging; the various swift projects that depend on XCTest all expect
98
+ # the swiftdoc and swiftmodule to be in the top level.
99
+ # So for now, make a copy so we don't have to do a coordinated commit across
100
+ # all the swift projects to change this assumption.
101
+ add_custom_target (TARGET
102
+ XCTest
103
+ POST_BUILD
104
+ COMMAND
105
+ ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_BINARY_DIR} /swift/XCTest.swiftdoc ${CMAKE_CURRENT_BINARY_DIR}
106
+ COMMAND
107
+ ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_BINARY_DIR} /swift/XCTest.swiftmodule ${CMAKE_CURRENT_BINARY_DIR}
108
+ COMMENT
109
+ "Copying swiftmodule/swiftdoc to build directory" )
110
+
97
111
if (EXISTS ${LLVM_MAIN_SRC_DIR} /utils/lit/lit.py )
98
112
set (LIT_COMMAND "${PYTHON_EXECUTABLE} ;${LLVM_MAIN_SRC_DIR} /utils/lit/lit.py"
99
113
CACHE STRING "command used to spawn llvm-lit" )
You can’t perform that action at this time.
0 commit comments