|
30 | 30 | //
|
31 | 31 |
|
32 | 32 | // REQUIRES: executable_test
|
33 |
| -// REQUIRES: VENDOR=apple |
34 |
| - |
35 |
| -// This test doesn't behave as expected on some deployment targets because |
36 |
| -// the minimum OS versions accepted by the linker are later than the deployment |
37 |
| -// targets given to the compiler invocation, and therefore symbols that need |
38 |
| -// to be weak linked for the test to function are not. |
39 |
| -// UNSUPPORTED: OS=ios && CPU=arm64e |
40 |
| -// UNSUPPORTED: OS=watchos && CPU=x86_64 |
| 33 | +// REQUIRES: OS=macosx |
41 | 34 |
|
42 | 35 | // ---- (0) Prepare SDK
|
43 | 36 | // RUN: %empty-directory(%t)
|
|
49 | 42 | // RUN: %target-build-swift-dylib(%t/SDK_ABI/Frameworks/BackDeployHelper.framework/BackDeployHelper) \
|
50 | 43 | // RUN: -emit-module-path %t/SDK_ABI/Frameworks/BackDeployHelper.framework/Modules/BackDeployHelper.swiftmodule/%module-target-triple.swiftmodule \
|
51 | 44 | // RUN: -module-name BackDeployHelper -emit-module %S/Inputs/BackDeployHelper.swift \
|
52 |
| -// RUN: -Xfrontend -target -Xfrontend %target-next-stable-abi-triple \ |
| 45 | +// RUN: -target %target-cpu-apple-macosx10.15 \ |
53 | 46 | // RUN: -Xfrontend -define-availability \
|
54 |
| -// RUN: -Xfrontend 'BackDeploy 1.0:macOS 10.14.3, iOS 12.1, tvOS 12.1, watchOS 5.1' \ |
| 47 | +// RUN: -Xfrontend 'BackDeploy 1.0:macOS 10.14.3' \ |
55 | 48 | // RUN: -Xfrontend -define-availability \
|
56 |
| -// RUN: -Xfrontend 'BackDeploy 2.0:macOS 10.15, iOS 13, tvOS 13, watchOS 6' \ |
| 49 | +// RUN: -Xfrontend 'BackDeploy 2.0:macOS 10.15' \ |
57 | 50 | // RUN: -Xlinker -install_name -Xlinker @rpath/BackDeployHelper.framework/BackDeployHelper \
|
58 | 51 | // RUN: -enable-library-evolution
|
59 | 52 |
|
60 | 53 | // ---- (2) Build executable
|
61 | 54 | // RUN: %target-build-swift -emit-executable %s -g -o %t/test_ABI \
|
62 |
| -// RUN: -Xfrontend -target -Xfrontend %target-pre-stable-abi-triple \ |
| 55 | +// RUN: -target %target-cpu-apple-macosx10.14.3 \ |
63 | 56 | // RUN: -Xfrontend -define-availability \
|
64 |
| -// RUN: -Xfrontend 'BackDeploy 1.0:macOS 10.14.3, iOS 12.1, tvOS 12.1, watchOS 5.1' \ |
| 57 | +// RUN: -Xfrontend 'BackDeploy 1.0:macOS 10.14.3' \ |
65 | 58 | // RUN: -Xfrontend -define-availability \
|
66 |
| -// RUN: -Xfrontend 'BackDeploy 2.0:macOS 10.15, iOS 13, tvOS 13, watchOS 6' \ |
| 59 | +// RUN: -Xfrontend 'BackDeploy 2.0:macOS 10.15' \ |
67 | 60 | // RUN: -F %t/SDK_ABI/Frameworks/ -framework BackDeployHelper \
|
68 | 61 | // RUN: %target-rpath(@executable_path/SDK_ABI/Frameworks)
|
69 | 62 |
|
|
76 | 69 | // RUN: %target-build-swift-dylib(%t/SDK_BD/Frameworks/BackDeployHelper.framework/BackDeployHelper) \
|
77 | 70 | // RUN: -emit-module-path %t/SDK_BD/Frameworks/BackDeployHelper.framework/Modules/BackDeployHelper.swiftmodule/%module-target-triple.swiftmodule \
|
78 | 71 | // RUN: -module-name BackDeployHelper -emit-module %S/Inputs/BackDeployHelper.swift \
|
79 |
| -// RUN: -Xfrontend -target -Xfrontend %target-next-stable-abi-triple \ |
| 72 | +// RUN: -target %target-cpu-apple-macosx10.15 \ |
80 | 73 | // RUN: -Xfrontend -define-availability \
|
81 |
| -// RUN: -Xfrontend 'BackDeploy 1.0:macOS 10.14.3, iOS 12.1, tvOS 12.1, watchOS 5.1' \ |
| 74 | +// RUN: -Xfrontend 'BackDeploy 1.0:macOS 10.14.3' \ |
82 | 75 | // RUN: -Xfrontend -define-availability \
|
83 |
| -// RUN: -Xfrontend 'BackDeploy 2.0:macOS 999.0, iOS 999.0, watchOS 999.0, tvOS 999.0' \ |
| 76 | +// RUN: -Xfrontend 'BackDeploy 2.0:macOS 999.0' \ |
84 | 77 | // RUN: -Xlinker -install_name -Xlinker @rpath/BackDeployHelper.framework/BackDeployHelper \
|
85 | 78 | // RUN: -enable-library-evolution
|
86 | 79 |
|
87 | 80 | // ---- (5) Build executable
|
88 | 81 | // RUN: %target-build-swift -emit-executable %s -g -o %t/test_BD \
|
89 |
| -// RUN: -Xfrontend -target -Xfrontend %target-next-stable-abi-triple \ |
| 82 | +// RUN: -target %target-cpu-apple-macosx10.14.3 \ |
90 | 83 | // RUN: -Xfrontend -define-availability \
|
91 |
| -// RUN: -Xfrontend 'BackDeploy 1.0:macOS 10.14.3, iOS 12.1, tvOS 12.1, watchOS 5.1' \ |
| 84 | +// RUN: -Xfrontend 'BackDeploy 1.0:macOS 10.14.3' \ |
92 | 85 | // RUN: -Xfrontend -define-availability \
|
93 |
| -// RUN: -Xfrontend 'BackDeploy 2.0:macOS 999.0, iOS 999.0, watchOS 999.0, tvOS 999.0' \ |
| 86 | +// RUN: -Xfrontend 'BackDeploy 2.0:macOS 999.0' \ |
94 | 87 | // RUN: -F %t/SDK_BD/Frameworks/ -framework BackDeployHelper \
|
95 | 88 | // RUN: %target-rpath(@executable_path/SDK_BD/Frameworks)
|
96 | 89 |
|
|
103 | 96 | // RUN: %target-build-swift-dylib(%t/SDK_BD/Frameworks/BackDeployHelper.framework/BackDeployHelper) \
|
104 | 97 | // RUN: -emit-module-path %t/SDK_BD/Frameworks/BackDeployHelper.framework/Modules/BackDeployHelper.swiftmodule/%module-target-triple.swiftmodule \
|
105 | 98 | // RUN: -module-name BackDeployHelper -emit-module %S/Inputs/BackDeployHelper.swift \
|
106 |
| -// RUN: -Xfrontend -target -Xfrontend %target-next-stable-abi-triple \ |
| 99 | +// RUN: -target %target-cpu-apple-macosx10.15 \ |
107 | 100 | // RUN: -Xfrontend -define-availability \
|
108 |
| -// RUN: -Xfrontend 'BackDeploy 1.0:macOS 10.14.3, iOS 12.1, tvOS 12.1, watchOS 5.1' \ |
| 101 | +// RUN: -Xfrontend 'BackDeploy 1.0:macOS 10.14.3' \ |
109 | 102 | // RUN: -Xfrontend -define-availability \
|
110 |
| -// RUN: -Xfrontend 'BackDeploy 2.0:macOS 999.0, iOS 999.0, watchOS 999.0, tvOS 999.0' \ |
| 103 | +// RUN: -Xfrontend 'BackDeploy 2.0:macOS 999.0' \ |
111 | 104 | // RUN: -Xlinker -install_name -Xlinker @rpath/BackDeployHelper.framework/BackDeployHelper \
|
112 | 105 | // RUN: -enable-library-evolution -DSTRIP_V2_APIS
|
113 | 106 |
|
|
0 commit comments