@@ -58,10 +58,6 @@ option(SWIFT_ENABLE_TARGET_LINUX
5858 "Enable compiler support for targeting Linux"
5959 TRUE )
6060
61- option (SWIFT_ENABLE_TARGET_TVOS
62- "Enable compiler support for targeting tvOS"
63- TRUE )
64-
6561set (SWIFT_VERSION "2.2" CACHE STRING
6662 "The user-visible version of the Swift compiler" )
6763set (SWIFT_VENDOR "" CACHE STRING
@@ -468,29 +464,27 @@ elseif("${CMAKE_SYSTEM_NAME}" STREQUAL "Darwin")
468464 IOS_SIMULATOR-R "iOS Release" IOS_SIMULATOR R "Release" )
469465 endif ()
470466
471- if (${SWIFT_ENABLE_TARGET_TVOS} )
472- is_sdk_requested(TVOS swift_build_tvos)
473- if (swift_build_tvos AND ${swift_can_crosscompile_stdlib} )
474- configure_sdk_darwin(
475- TVOS "tvOS" "${SWIFT_DARWIN_DEPLOYMENT_VERSION_TVOS} "
476- appletvos tvos tvos "arm64" )
477- configure_target_variant(TVOS-DA "tvOS Debug+Asserts" TVOS DA "Debug+Asserts" )
478- configure_target_variant(TVOS-RA "tvOS Release+Asserts" TVOS RA "Release+Asserts" )
479- configure_target_variant(TVOS-R "tvOS Release" TVOS R "Release" )
480- endif ()
467+ is_sdk_requested(TVOS swift_build_tvos)
468+ if (swift_build_tvos AND ${swift_can_crosscompile_stdlib} )
469+ configure_sdk_darwin(
470+ TVOS "tvOS" "${SWIFT_DARWIN_DEPLOYMENT_VERSION_TVOS} "
471+ appletvos tvos tvos "arm64" )
472+ configure_target_variant(TVOS-DA "tvOS Debug+Asserts" TVOS DA "Debug+Asserts" )
473+ configure_target_variant(TVOS-RA "tvOS Release+Asserts" TVOS RA "Release+Asserts" )
474+ configure_target_variant(TVOS-R "tvOS Release" TVOS R "Release" )
475+ endif ()
481476
482- is_sdk_requested(TVOS_SIMULATOR swift_build_tvos_simulator)
483- if (swift_build_tvos_simulator AND ${swift_can_crosscompile_stdlib} )
484- configure_sdk_darwin(
485- TVOS_SIMULATOR "tvOS Simulator" "${SWIFT_DARWIN_DEPLOYMENT_VERSION_TVOS} "
486- appletvsimulator tvos-simulator tvos "x86_64" )
487- configure_target_variant(
488- TVOS_SIMULATOR-DA "tvOS Debug+Asserts" TVOS_SIMULATOR DA "Debug+Asserts" )
489- configure_target_variant(
490- TVOS_SIMULATOR-RA "tvOS Release+Asserts" TVOS_SIMULATOR RA "Release+Asserts" )
491- configure_target_variant(
492- TVOS_SIMULATOR-R "tvOS Release" TVOS_SIMULATOR R "Release" )
493- endif ()
477+ is_sdk_requested(TVOS_SIMULATOR swift_build_tvos_simulator)
478+ if (swift_build_tvos_simulator AND ${swift_can_crosscompile_stdlib} )
479+ configure_sdk_darwin(
480+ TVOS_SIMULATOR "tvOS Simulator" "${SWIFT_DARWIN_DEPLOYMENT_VERSION_TVOS} "
481+ appletvsimulator tvos-simulator tvos "x86_64" )
482+ configure_target_variant(
483+ TVOS_SIMULATOR-DA "tvOS Debug+Asserts" TVOS_SIMULATOR DA "Debug+Asserts" )
484+ configure_target_variant(
485+ TVOS_SIMULATOR-RA "tvOS Release+Asserts" TVOS_SIMULATOR RA "Release+Asserts" )
486+ configure_target_variant(
487+ TVOS_SIMULATOR-R "tvOS Release" TVOS_SIMULATOR R "Release" )
494488 endif ()
495489
496490 is_sdk_requested(WATCHOS swift_build_watchos)
0 commit comments