Skip to content

Commit bbd26e8

Browse files
committed
Runtimes: correct CommandLineSupport build on Windows
We would fail to build the runtime with the new build with command line support and a shared runtime. The reason for this was that CommandLineSupport did not properly build against the headers and attempted to import a locally defined symbol. Correct the build by indicating that this library is compacted into the runtime.
1 parent 69c5a02 commit bbd26e8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Runtimes/Core/CommandLineSupport/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ if(SwiftCore_ENABLE_COMMANDLINE_SUPPORT)
55
"${PROJECT_BINARY_DIR}/include")
66
target_compile_definitions(swiftCommandLineSupport PUBLIC
77
-DSWIFT_STDLIB_HAS_COMMANDLINE)
8+
target_compile_definitions(swiftCommandLineSupport PRIVATE
9+
$<$<BOOL:${BUILD_SHARED_LIBS}>:-DswiftCore_EXPORTS>)
810

911
target_link_libraries(swiftCommandLineSupport PRIVATE
1012
swiftShims)

0 commit comments

Comments
 (0)