Skip to content

Commit 4324e7c

Browse files
committed
Remove conditional compilation of tvOS
1 parent 7dd34bf commit 4324e7c

28 files changed

+26
-121
lines changed

CMakeLists.txt

Lines changed: 20 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -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-
6561
set(SWIFT_VERSION "2.2" CACHE STRING
6662
"The user-visible version of the Swift compiler")
6763
set(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)

include/swift/AST/PlatformKinds.def

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,11 @@
2323

2424
// Reordering these platforms will break serialization.
2525
AVAILABILITY_PLATFORM(iOS, "iOS")
26-
#if defined(SWIFT_ENABLE_TARGET_TVOS)
2726
AVAILABILITY_PLATFORM(tvOS, "tvOS")
28-
#endif // SWIFT_ENABLE_TARGET_TVOS
2927
AVAILABILITY_PLATFORM(watchOS, "watchOS")
3028
AVAILABILITY_PLATFORM(OSX, "OS X")
3129
AVAILABILITY_PLATFORM(iOSApplicationExtension, "iOS application extension")
32-
#if defined(SWIFT_ENABLE_TARGET_TVOS)
3330
AVAILABILITY_PLATFORM(tvOSApplicationExtension, "tvOS application extension")
34-
#endif // SWIFT_ENABLE_TARGET_TVOS
3531
AVAILABILITY_PLATFORM(watchOSApplicationExtension, "watchOS application extension")
3632
AVAILABILITY_PLATFORM(OSXApplicationExtension, "OS X application extension")
3733

include/swift/Basic/Platform.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,8 @@ namespace swift {
2525
/// Returns true if the given triple represents iOS running in a simulator.
2626
bool tripleIsiOSSimulator(const llvm::Triple &triple);
2727

28-
#if defined(SWIFT_ENABLE_TARGET_TVOS)
2928
/// Returns true if the given triple represents AppleTV running in a simulator.
3029
bool tripleIsAppleTVSimulator(const llvm::Triple &triple);
31-
#endif // SWIFT_ENABLE_TARGET_TVOS
3230

3331
/// Returns true if the given triple represents watchOS running in a simulator.
3432
bool tripleIsWatchSimulator(const llvm::Triple &triple);

include/swift/Config.h.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
#ifndef SWIFT_CONFIG_H
55
#define SWIFT_CONFIG_H
66

7-
#cmakedefine SWIFT_ENABLE_TARGET_TVOS 1
87
#cmakedefine SWIFT_HAVE_WORKING_STD_REGEX 1
98

109
#endif // SWIFT_CONFIG_H

lib/AST/PlatformKind.cpp

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -70,16 +70,10 @@ bool swift::isPlatformActive(PlatformKind Platform, LangOptions &LangOpts) {
7070
return LangOpts.Target.isMacOSX();
7171
case PlatformKind::iOS:
7272
case PlatformKind::iOSApplicationExtension:
73-
return LangOpts.Target.isiOS()
74-
#if defined(SWIFT_ENABLE_TARGET_TVOS)
75-
&& !LangOpts.Target.isTvOS()
76-
#endif // SWIFT_ENABLE_TARGET_TVOS
77-
;
78-
#if defined(SWIFT_ENABLE_TARGET_TVOS)
73+
return LangOpts.Target.isiOS() && !LangOpts.Target.isTvOS();
7974
case PlatformKind::tvOS:
8075
case PlatformKind::tvOSApplicationExtension:
8176
return LangOpts.Target.isTvOS();
82-
#endif // SWIFT_ENABLE_TARGET_TVOS
8377
case PlatformKind::watchOS:
8478
case PlatformKind::watchOSApplicationExtension:
8579
return LangOpts.Target.isWatchOS();
@@ -96,13 +90,11 @@ PlatformKind swift::targetPlatform(LangOptions &LangOpts) {
9690
: PlatformKind::OSX);
9791
}
9892

99-
#if defined(SWIFT_ENABLE_TARGET_TVOS)
10093
if (LangOpts.Target.isTvOS()) {
10194
return (LangOpts.EnableAppExtensionRestrictions
10295
? PlatformKind::tvOSApplicationExtension
10396
: PlatformKind::tvOS);
10497
}
105-
#endif // SWIFT_ENABLE_TARGET_TVOS
10698

10799
if (LangOpts.Target.isWatchOS()) {
108100
return (LangOpts.EnableAppExtensionRestrictions

lib/Basic/LangOptions.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@ using namespace swift;
2525

2626
const std::vector<std::string> LangOptions::SupportedOSBuildConfigArguments = {
2727
"OSX",
28-
#if defined(SWIFT_ENABLE_TARGET_TVOS)
2928
"tvOS",
30-
#endif
3129
"watchOS",
3230
"iOS",
3331
"Linux"
@@ -92,10 +90,8 @@ std::pair<bool, bool> LangOptions::setTarget(llvm::Triple triple) {
9290
// Set the "os" target configuration.
9391
if (Target.isMacOSX())
9492
addTargetConfigOption("os", "OSX");
95-
#if defined(SWIFT_ENABLE_TARGET_TVOS)
9693
else if (triple.isTvOS())
9794
addTargetConfigOption("os", "tvOS");
98-
#endif // SWIFT_ENABLE_TARGET_TVOS
9995
else if (triple.isWatchOS())
10096
addTargetConfigOption("os", "watchOS");
10197
else if (triple.isiOS())

lib/Basic/Platform.cpp

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,11 @@ bool swift::tripleIsiOSSimulator(const llvm::Triple &triple) {
2121
(arch == llvm::Triple::x86 || arch == llvm::Triple::x86_64));
2222
}
2323

24-
#if defined(SWIFT_ENABLE_TARGET_TVOS)
2524
bool swift::tripleIsAppleTVSimulator(const llvm::Triple &triple) {
2625
llvm::Triple::ArchType arch = triple.getArch();
2726
return (triple.isTvOS() &&
2827
(arch == llvm::Triple::x86 || arch == llvm::Triple::x86_64));
2928
}
30-
#endif // SWIFT_ENABLE_TARGET_TVOS
3129

3230
bool swift::tripleIsWatchSimulator(const llvm::Triple &triple) {
3331
llvm::Triple::ArchType arch = triple.getArch();
@@ -36,23 +34,18 @@ bool swift::tripleIsWatchSimulator(const llvm::Triple &triple) {
3634
}
3735

3836
bool swift::tripleIsAnySimulator(const llvm::Triple &triple) {
39-
#if defined(SWIFT_ENABLE_TARGET_TVOS)
40-
if (tripleIsAppleTVSimulator(triple))
41-
return true;
42-
#endif // SWIFT_ENABLE_TARGET_TVOS
43-
44-
return tripleIsiOSSimulator(triple) || tripleIsWatchSimulator(triple);
37+
return tripleIsiOSSimulator(triple) ||
38+
tripleIsWatchSimulator(triple) ||
39+
tripleIsAppleTVSimulator(triple);
4540
}
4641

4742
StringRef swift::getPlatformNameForTriple(const llvm::Triple &triple) {
4843
if (triple.isiOS()) {
49-
#if defined(SWIFT_ENABLE_TARGET_TVOS)
5044
if (triple.isTvOS()) {
5145
if (tripleIsAppleTVSimulator(triple))
5246
return "appletvsimulator";
5347
return "appletvos";
5448
}
55-
#endif // SWIFT_ENABLE_TARGET_TVOS
5649

5750
if (tripleIsiOSSimulator(triple))
5851
return "iphonesimulator";

lib/ClangImporter/ClangImporter.cpp

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -364,11 +364,7 @@ getNormalInvocationArguments(std::vector<std::string> &invocationArgStrs,
364364
unsigned major, minor, micro;
365365
if (triple.isiOS()) {
366366
bool isiOSSimulator = swift::tripleIsiOSSimulator(triple);
367-
#if defined(SWIFT_ENABLE_TARGET_TVOS)
368367
if (triple.isTvOS()) {
369-
#else
370-
if (/* DISABLES CODE */ (false)) {
371-
#endif // SWIFT_ENABLE_TARGET_TVOS
372368
if (isiOSSimulator)
373369
minVersionOpt << "-mtvos-simulator-version-min=";
374370
else
@@ -1031,11 +1027,7 @@ ClangImporter::Implementation::Implementation(ASTContext &ctx,
10311027
// applies in Swift, and if so, what is the cutoff for deprecated
10321028
// declarations that are now considered unavailable in Swift.
10331029

1034-
if (ctx.LangOpts.Target.isiOS()
1035-
#if defined(SWIFT_ENABLE_TARGET_TVOS)
1036-
&& !ctx.LangOpts.Target.isTvOS()
1037-
#endif // SWIFT_ENABLE_TARGET_TVOS
1038-
) {
1030+
if (ctx.LangOpts.Target.isiOS() && !ctx.LangOpts.Target.isTvOS()) {
10391031
if (!ctx.LangOpts.EnableAppExtensionRestrictions) {
10401032
PlatformAvailabilityFilter =
10411033
[](StringRef Platform) { return Platform == "ios"; };
@@ -1052,7 +1044,6 @@ ClangImporter::Implementation::Implementation(ASTContext &ctx,
10521044
DeprecatedAsUnavailableMessage =
10531045
"APIs deprecated as of iOS 7 and earlier are unavailable in Swift";
10541046
}
1055-
#if defined(SWIFT_ENABLE_TARGET_TVOS)
10561047
else if (ctx.LangOpts.Target.isTvOS()) {
10571048
if (!ctx.LangOpts.EnableAppExtensionRestrictions) {
10581049
PlatformAvailabilityFilter =
@@ -1070,7 +1061,6 @@ ClangImporter::Implementation::Implementation(ASTContext &ctx,
10701061
DeprecatedAsUnavailableMessage =
10711062
"APIs deprecated as of iOS 7 and earlier are unavailable in Swift";
10721063
}
1073-
#endif // SWIFT_ENABLE_TARGET_TVOS
10741064
else if (ctx.LangOpts.Target.isWatchOS()) {
10751065
if (!ctx.LangOpts.EnableAppExtensionRestrictions) {
10761066
PlatformAvailabilityFilter =

lib/ClangImporter/ImportDecl.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5761,17 +5761,13 @@ void ClangImporter::Implementation::importAttributes(
57615761
llvm::StringSwitch<Optional<PlatformKind>>(Platform)
57625762
.Case("ios", PlatformKind::iOS)
57635763
.Case("macosx", PlatformKind::OSX)
5764-
#if defined(SWIFT_ENABLE_TARGET_TVOS)
57655764
.Case("tvos", PlatformKind::tvOS)
5766-
#endif // SWIFT_ENABLE_TARGET_TVOS
57675765
.Case("watchos", PlatformKind::watchOS)
57685766
.Case("ios_app_extension", PlatformKind::iOSApplicationExtension)
57695767
.Case("macosx_app_extension",
57705768
PlatformKind::OSXApplicationExtension)
5771-
#if defined(SWIFT_ENABLE_TARGET_TVOS)
57725769
.Case("tvos_app_extension",
57735770
PlatformKind::tvOSApplicationExtension)
5774-
#endif // SWIFT_ENABLE_TARGET_TVOS
57755771
.Case("watchos_app_extension",
57765772
PlatformKind::watchOSApplicationExtension)
57775773
.Default(None);

lib/Driver/Driver.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,15 +129,13 @@ static void validateArgs(DiagnosticEngine &diags, const ArgList &Args) {
129129
diags.diagnose(SourceLoc(), diag::error_os_minimum_deployment,
130130
"OS X 10.9");
131131
} else if (triple.isiOS()) {
132-
#if defined(SWIFT_ENABLE_TARGET_TVOS)
133132
if (triple.isTvOS()) {
134133
if (triple.isOSVersionLT(9, 0)) {
135134
diags.diagnose(SourceLoc(), diag::error_os_minimum_deployment,
136135
"tvOS 9.0");
137136
return;
138137
}
139138
}
140-
#endif // SWIFT_ENABLE_TARGET_TVOS
141139
if (triple.isOSVersionLT(7))
142140
diags.diagnose(SourceLoc(), diag::error_os_minimum_deployment,
143141
"iOS 7");
@@ -2024,9 +2022,7 @@ const ToolChain *Driver::getToolChain(const ArgList &Args) const {
20242022
case llvm::Triple::Darwin:
20252023
case llvm::Triple::MacOSX:
20262024
case llvm::Triple::IOS:
2027-
#if defined(SWIFT_ENABLE_TARGET_TVOS)
20282025
case llvm::Triple::TvOS:
2029-
#endif // SWIFT_ENABLE_TARGET_TVOS
20302026
case llvm::Triple::WatchOS:
20312027
TC = new toolchains::Darwin(*this, Target);
20322028
break;

lib/Driver/ToolChains.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -866,11 +866,9 @@ toolchains::Darwin::constructInvocation(const LinkJobAction &job,
866866

867867
StringRef RT;
868868
if (Triple.isiOS()) {
869-
#if defined(SWIFT_ENABLE_TARGET_TVOS)
870869
if (Triple.isTvOS())
871870
RT = "tvos";
872871
else
873-
#endif // SWIFT_ENABLE_TARGET_TVOS
874872
RT = "ios";
875873
}
876874
else if (Triple.isWatchOS())
@@ -891,15 +889,12 @@ toolchains::Darwin::constructInvocation(const LinkJobAction &job,
891889
assert(Triple.isiOS() || Triple.isWatchOS() || Triple.isMacOSX());
892890
if (Triple.isiOS()) {
893891
bool isiOSSimulator = tripleIsiOSSimulator(Triple);
894-
#if defined(SWIFT_ENABLE_TARGET_TVOS)
895892
if (Triple.isTvOS()) {
896893
if (isiOSSimulator)
897894
Arguments.push_back("-tvos_simulator_version_min");
898895
else
899896
Arguments.push_back("-tvos_version_min");
900-
} else
901-
#endif // SWIFT_ENABLE_TARGET_TVOS
902-
{
897+
} else {
903898
if (isiOSSimulator)
904899
Arguments.push_back("-ios_simulator_version_min");
905900
else

test/BuildConfigurations/arm64AppleTVOSTarget.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// RUN: %swift -parse %s -verify -D FOO -D BAR -target arm64-apple-tvos9.0 -D FOO -parse-stdlib
22
// RUN: %swift-ide-test -test-input-complete -source-filename=%s -target arm64-apple-tvos9.0
33

4-
// REQUIRES: enable_target_appletvos
5-
64
#if os(iOS)
75
// This block should not parse.
86
// os(tvOS) or os(watchOS) does not imply os(iOS).

test/BuildConfigurations/i386AppleTVOSTarget.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// RUN: %swift -parse %s -verify -D FOO -D BAR -target i386-apple-tvos9.0 -D FOO -parse-stdlib
22
// RUN: %swift-ide-test -test-input-complete -source-filename=%s -target i386-apple-tvos9.0
33

4-
// REQUIRES: enable_target_appletvos
5-
64
#if os(iOS)
75
// This block should not parse.
86
// os(tvOS) or os(watchOS) does not imply os(iOS).

test/BuildConfigurations/x64AppleTVOSTarget.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// RUN: %swift -parse %s -verify -D FOO -D BAR -target x86_64-apple-tvos9.0 -D FOO -parse-stdlib
22
// RUN: %swift-ide-test -test-input-complete -source-filename=%s -target x86_64-apple-tvos9.0
33

4-
// REQUIRES: enable_target_appletvos
5-
64
#if os(iOS)
75
// This block should not parse.
86
// os(tvOS) or os(watchOS) does not imply os(iOS).

test/CMakeLists.txt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,6 @@ if(PYTHONINTERP_FOUND)
105105
list(APPEND SWIFT_TEST_EXTRA_ARGS "--param" "leaks-all")
106106
endif()
107107

108-
if(NOT SWIFT_ENABLE_TARGET_APPLETVOS)
109-
list(APPEND SWIFT_TEST_EXTRA_ARGS
110-
"--param" "swift_enable_target_appletvos=false")
111-
endif()
112-
113108
if(NOT CMAKE_CFG_INTDIR STREQUAL ".")
114109
list(APPEND SWIFT_TEST_EXTRA_ARGS
115110
"--param" "build_mode=${CMAKE_CFG_INTDIR}")

test/Driver/linker.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,5 +177,3 @@
177177
// Clean up the test executable because hard links are expensive.
178178
// RUN: rm -rf %t/DISTINCTIVE-PATH/usr/bin/swiftc
179179

180-
// REQUIRES: enable_target_appletvos
181-

test/Driver/os-deployment.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,3 @@
99
// CHECK-tvOS: Swift requires a minimum deployment target of tvOS 9.0
1010
// CHECK-watchOS: Swift requires a minimum deployment target of watchOS 2.0
1111

12-
// REQUIRES: enable_target_appletvos

test/Driver/profiling.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,3 @@
2626
// LINUX: clang++{{"? }}
2727
// LINUX: lib/swift/clang/{{[^ ]*}}/lib/linux/libclang_rt.profile-x86_64.a
2828

29-
// REQUIRES: enable_target_appletvos
30-

test/Driver/sdk-apple.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// REQUIRES: enable_target_appletvos
21
// XFAIL: linux
32

43
// Test SDK detection for immediate mode.

test/IDE/complete_decl_attribute.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
// RUN: %target-swift-ide-test -code-completion -source-filename %s -code-completion-token=KEYWORD5 | FileCheck %s -check-prefix=KEYWORD5
88
// RUN: %target-swift-ide-test -code-completion -source-filename %s -code-completion-token=KEYWORD_LAST | FileCheck %s -check-prefix=KEYWORD_LAST
99

10-
// REQUIRES: enable_target_appletvos
11-
1210
@available(#^AVAILABILITY1^#)
1311

1412
// AVAILABILITY1: Begin completions, 9 items

test/IRGen/generic_metatypes.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
// RUN: %swift -target x86_64-unknown-linux-gnu -disable-objc-interop -emit-ir -parse-stdlib -primary-file %s | FileCheck --check-prefix=CHECK --check-prefix=CHECK-64 %s
1313

1414
// REQUIRES: X86
15-
// REQUIRES: enable_target_appletvos
1615

1716
// CHECK: define hidden %swift.type* [[GENERIC_TYPEOF:@_TF17generic_metatypes13genericTypeof.*]](%swift.opaque* noalias nocapture, %swift.type* [[TYPE:%.*]])
1817
func genericTypeof<T>(x: T) -> T.Type {

test/Interpreter/availability_weak_linking.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717

1818
// REQUIRES: objc_interop
1919
// REQUIRES: executable_test
20-
// REQUIRES: enable_target_appletvos
2120

2221
import StdlibUnittest
2322

test/Misc/target-cpu.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,3 @@
3737
// RUN: not %swift -parse -target x86_64-apple-watchos2 -Xcc -### %s 2>&1 | FileCheck -check-prefix=WATCHSIMULATOR64_CPU %s
3838
// WATCHSIMULATOR64_CPU: "-target-cpu" "core2"
3939

40-
// REQUIRES: enable_target_appletvos
41-

0 commit comments

Comments
 (0)