File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed
stdlib/public/Concurrency Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -319,4 +319,25 @@ if(SWIFT_SHOULD_BUILD_EMBEDDED_STDLIB AND SWIFT_SHOULD_BUILD_EMBEDDED_CONCURRENC
319
319
320
320
add_dependencies (embedded-concurrency embedded-concurrency-${mod} )
321
321
endforeach ()
322
+
323
+ # Copy the ExecutorImpl.h header into the local include directory
324
+ # and install it in the compiler toolchain
325
+ add_custom_command (
326
+ OUTPUT "${SWIFT_INCLUDE_DIR} /swift/ExecutorImpl.h"
327
+ DEPENDS "${CMAKE_CURRENT_SOURCE_DIR} /ExecutorImpl.h"
328
+ COMMAND "${CMAKE_COMMAND} " "-E" "copy"
329
+ "${CMAKE_CURRENT_SOURCE_DIR} /ExecutorImpl.h"
330
+ "${SWIFT_INCLUDE_DIR} /swift" )
331
+
332
+ add_custom_target ("copy_executor_impl_header"
333
+ DEPENDS "${SWIFT_INCLUDE_DIR} /swift/ExecutorImpl.h"
334
+ COMMENT "Copying executor implementation header to ${SWIFT_INCLUDE_DIR} /swift" )
335
+
336
+ swift_install_in_component (FILES
337
+ "${CMAKE_CURRENT_SOURCE_DIR} /ExecutorImpl.h"
338
+ DESTINATION "include/swift"
339
+ COMPONENT compiler )
340
+
341
+ add_dependencies (embedded-concurrency "copy_executor_impl_header" )
322
342
endif ()
343
+
You can’t perform that action at this time.
0 commit comments