@@ -874,12 +874,7 @@ include(CMakePushCheckState)
874874
875875# Print out path and version of any installed commands
876876message (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
883878 OUTPUT_VARIABLE _CMAKE_MAKE_PROGRAM_VERSION
884879 OUTPUT_STRIP_TRAILING_WHITESPACE)
885880message (STATUS "CMake Make Program (${CMAKE_MAKE_PROGRAM} ) Version: ${_CMAKE_MAKE_PROGRAM_VERSION} " )
@@ -1147,14 +1142,6 @@ endif()
11471142# Configure SDKs.
11481143#
11491144
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-
11581145# FIXME: the parameters we specify in SWIFT_SDKS are lacking architecture specifics,
11591146# so we need to hard-code it. For example, the SDK for Android is just 'ANDROID',
11601147# and we have to specify SWIFT_SDK_ANDROID_ARCHITECTURES separately.
@@ -1597,22 +1584,6 @@ swift_install_in_component(FILES "LICENSE.txt"
15971584 DESTINATION "share/swift"
15981585 COMPONENT license)
15991586
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-
16161587# New standard library build
16171588option (SWIFT_ENABLE_NEW_RUNTIME_BUILD "Build Swift runtimes with new build system" OFF )
16181589if (SWIFT_ENABLE_NEW_RUNTIME_BUILD)
0 commit comments