Skip to content

Commit 87b44cf

Browse files
committed
[cmake] Set SWIFT_STDLIB_HAS_COMMANDLINE
Set the SWIFT_STDLIB_HAS_COMMANDLINE macro when the stdlib has command line support. This is needed while building SwiftCore to ensure that it exports the appropriate symbols.
1 parent 08b3c95 commit 87b44cf

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
@@ -3,6 +3,8 @@ if(SwiftCore_ENABLE_COMMANDLINE_SUPPORT)
33
target_include_directories(swiftCommandLineSupport PRIVATE
44
"${SwiftCore_SWIFTC_SOURCE_DIR}/include"
55
"${PROJECT_BINARY_DIR}/include")
6+
target_compile_definitions(swiftCommandLineSupport PUBLIC
7+
-DSWIFT_STDLIB_HAS_COMMANDLINE)
68

79
target_link_libraries(swiftCommandLineSupport PRIVATE
810
swiftShims)

0 commit comments

Comments
 (0)