@@ -874,12 +874,7 @@ include(CMakePushCheckState)
874
874
875
875
# Print out path and version of any installed commands
876
876
message (STATUS "CMake (${CMAKE_COMMAND} ) Version: ${CMAKE_VERSION} " )
877
- if (XCODE)
878
- set (version_flag -version )
879
- else ()
880
- set (version_flag --version )
881
- endif ()
882
- execute_process (COMMAND ${CMAKE_MAKE_PROGRAM} ${version_flag}
877
+ execute_process (COMMAND ${CMAKE_MAKE_PROGRAM} --version
883
878
OUTPUT_VARIABLE _CMAKE_MAKE_PROGRAM_VERSION
884
879
OUTPUT_STRIP_TRAILING_WHITESPACE)
885
880
message (STATUS "CMake Make Program (${CMAKE_MAKE_PROGRAM} ) Version: ${_CMAKE_MAKE_PROGRAM_VERSION} " )
@@ -1147,14 +1142,6 @@ endif()
1147
1142
# Configure SDKs.
1148
1143
#
1149
1144
1150
- if (XCODE)
1151
- # FIXME: It used to be the case that Xcode would force
1152
- # -m${platform}-version-min flags that would conflict with those computed
1153
- # by build-script. version-min flags are deprecated in favor of -target since
1154
- # clang-11, so we might be able to undo this.
1155
- set (SWIFT_SDKS "OSX" )
1156
- endif ()
1157
-
1158
1145
# FIXME: the parameters we specify in SWIFT_SDKS are lacking architecture specifics,
1159
1146
# so we need to hard-code it. For example, the SDK for Android is just 'ANDROID',
1160
1147
# and we have to specify SWIFT_SDK_ANDROID_ARCHITECTURES separately.
@@ -1597,22 +1584,6 @@ swift_install_in_component(FILES "LICENSE.txt"
1597
1584
DESTINATION "share/swift"
1598
1585
COMPONENT license)
1599
1586
1600
- # Add a documentation target so that documentation shows up in the
1601
- # Xcode project.
1602
- if (XCODE)
1603
- add_custom_target (Documentation
1604
- SOURCES
1605
- README.md
1606
- docs)
1607
-
1608
- file (GLOB SWIFT_TOPLEVEL_HEADERS
1609
- ${CMAKE_CURRENT_SOURCE_DIR} /include /swift${dir} /*.h
1610
- ${CMAKE_CURRENT_SOURCE_DIR} /include /swift${dir} /*.td
1611
- ${CMAKE_CURRENT_SOURCE_DIR} /include /swift${dir} /*.def)
1612
- add_custom_target (Miscellaneous
1613
- SOURCES ${SWIFT_TOPLEVEL_HEADERS} )
1614
- endif ()
1615
-
1616
1587
# New standard library build
1617
1588
option (SWIFT_ENABLE_NEW_RUNTIME_BUILD "Build Swift runtimes with new build system" OFF )
1618
1589
if (SWIFT_ENABLE_NEW_RUNTIME_BUILD)
0 commit comments