Skip to content

Commit 1ae446e

Browse files
authored
Merge pull request #61493 from mikeash/refix-protocol-conformance-collision
[Test] Re-fix Runtime/protocol_conformance_collision.swift.
2 parents 754c0ce + f8e8fa0 commit 1ae446e

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

test/Runtime/protocol_conformance_collision.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// RUN: %empty-directory(%t)
2-
// RUN: %target-build-swift %s -o %t/newSDK %target-link-sdk-future-version
2+
// RUN: %target-build-swift %s -o %t/newSDK %target-link-sdk-2021-version
33
// RUN: %target-codesign %t/newSDK
44
// RUN: %target-run %t/newSDK newSDK
55
// RUN: %target-build-swift %s -o %t/oldSDK %target-link-sdk-2020-version
@@ -17,8 +17,6 @@
1717
// UNSUPPORTED: use_os_stdlib
1818
// UNSUPPORTED: back_deployment_runtime
1919

20-
// REQUIRES: rdar98989894
21-
2220
import Accelerate
2321
import Foundation
2422
import StdlibUnittest

test/lit.cfg

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1339,6 +1339,14 @@ if run_vendor == 'apple':
13391339
'watchos': '7.0'
13401340
}
13411341
sdk_2020_version = SDK_2020_VERSION.get(run_os, '')
1342+
SDK_2021_VERSION = {
1343+
'macosx': '12.0',
1344+
'ios': '15.0',
1345+
'maccatalyst': '15.0',
1346+
'tvos': '15.0',
1347+
'watchos': '8.0'
1348+
}
1349+
sdk_2021_version = SDK_2021_VERSION.get(run_os, '')
13421350
linker_os = {
13431351
'iphoneos': 'ios',
13441352
'appletvos': 'tvos',
@@ -1352,6 +1360,9 @@ if run_vendor == 'apple':
13521360
config.target_link_sdk_2020_version = (
13531361
"-Xlinker -platform_version -Xlinker %s -Xlinker %s -Xlinker %s" %
13541362
(linker_os, sdk_2020_version, sdk_2020_version))
1363+
config.target_link_sdk_2021_version = (
1364+
"-Xlinker -platform_version -Xlinker %s -Xlinker %s -Xlinker %s" %
1365+
(linker_os, sdk_2021_version, sdk_2021_version))
13551366
config.target_link_sdk_future_version = (
13561367
"-Xlinker -platform_version -Xlinker %s -Xlinker %s -Xlinker %s" %
13571368
(linker_os, target_future_version, target_future_version))
@@ -2476,6 +2487,9 @@ if hasattr(config, 'otool_classic'):
24762487
if hasattr(config, 'target_link_sdk_2020_version'):
24772488
config.substitutions.append(('%target-link-sdk-2020-version',
24782489
config.target_link_sdk_2020_version))
2490+
if hasattr(config, 'target_link_sdk_2021_version'):
2491+
config.substitutions.append(('%target-link-sdk-2021-version',
2492+
config.target_link_sdk_2021_version))
24792493
if hasattr(config, 'target_link_sdk_future_version'):
24802494
config.substitutions.append(('%target-link-sdk-future-version',
24812495
config.target_link_sdk_future_version))

0 commit comments

Comments
 (0)