Skip to content

Commit bd9e2de

Browse files
committed
build: add additional target exports for static linking
When building tools-support-core using statically linked libraries, we need to export additional targets to ensure that the full closure is available to consumers.This is meant to support building swift-driver against a statically linked form of tools-support-core to allow using the early swift-driver on Windows.
1 parent 0cf39c0 commit bd9e2de

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Sources/TSCLibc/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,5 @@ add_library(TSCLibc STATIC
1212
# NOTE(compnerd) workaround for CMake not setting up include flags yet
1313
set_target_properties(TSCLibc PROPERTIES
1414
INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_Swift_MODULE_DIRECTORY})
15+
16+
set_property(GLOBAL APPEND PROPERTY TSC_EXPORTS TSCLibc)

0 commit comments

Comments
 (0)