File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -191,9 +191,10 @@ set(SWIFT_TOOLS_ENABLE_LTO OFF CACHE STRING "Build Swift tools with LTO. One
191
191
option only affects the tools that run on the host (the compiler), and has
192
192
no effect on the target libraries (the standard library and the runtime)." )
193
193
194
- option (SWIFT_TOOLS_ENABLE_LIBSWIFT
195
- "Enable building libswift and linking libswift into the compiler itself."
196
- FALSE )
194
+ # NOTE: We do not currently support building libswift with the Xcode generator.
195
+ cmake_dependent_option (SWIFT_TOOLS_ENABLE_LIBSWIFT
196
+ "Enable building libswift and linking libswift into the compiler itself." FALSE
197
+ "NOT CMAKE_GENERATOR STREQUAL \" Xcode\" " FALSE )
197
198
198
199
# The following only works with the Ninja generator in CMake >= 3.0.
199
200
set (SWIFT_PARALLEL_LINK_JOBS "" CACHE STRING
@@ -1060,9 +1061,7 @@ if(SWIFT_INCLUDE_TOOLS)
1060
1061
# which is used in add_swift_host_tool for the lldb workaround.
1061
1062
#
1062
1063
# NOTE: We do not currently support libswift with the Xcode generator.
1063
- if (NOT CMAKE_GENERATOR STREQUAL "Xcode" )
1064
- add_subdirectory (libswift )
1065
- endif ()
1064
+ add_subdirectory (libswift )
1066
1065
1067
1066
# Always include this after including stdlib/!
1068
1067
# Refer to the large comment above the add_subdirectory(stdlib) call.
You can’t perform that action at this time.
0 commit comments