Skip to content

Commit 696aa9c

Browse files
committed
symlink src/. to src/.libs
Create a symlink to match where libtool put libdispatch.so to avoid needing simultaneous updates across all Swift projects that depend on libdispatch.
1 parent 71f4419 commit 696aa9c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,12 @@ add_library(dispatch
104104
shims/yield.h
105105
${dispatch_BLOCK_SOURCES}
106106
${dispatch_SWIFT_SOURCES})
107+
# Temporary staging; the various swift projects that depend on libdispatch
108+
# all expect libdispatch.so to be in src/.libs/libdispatch.so
109+
# So make a symlink so we don't have to do a coordinated commit across all the
110+
# swift projects to change this assumption.
111+
add_custom_target(.libs ALL
112+
COMMAND cmake -E create_symlink . .libs)
107113
target_include_directories(dispatch
108114
PRIVATE
109115
${CMAKE_BINARY_DIR}

0 commit comments

Comments
 (0)