File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
test/Concurrency/Backdeploy Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ function(_add_target_variant_c_compile_link_flags)
55
55
if ("${CFLAGS_SDK} " IN_LIST SWIFT_DARWIN_PLATFORMS )
56
56
# Check if there's a specific OS deployment version needed for this invocation
57
57
if ("${CFLAGS_SDK} " STREQUAL "OSX" )
58
- if (DEFINED maccatalyst_build_flavor )
58
+ if (DEFINED maccatalyst_build_flavor AND DEFINED CFLAGS_DEPLOYMENT_VERSION_MACCATALYST )
59
59
set (DEPLOYMENT_VERSION ${CFLAGS_DEPLOYMENT_VERSION_MACCATALYST} )
60
60
else ()
61
61
set (DEPLOYMENT_VERSION ${CFLAGS_DEPLOYMENT_VERSION_OSX} )
Original file line number Diff line number Diff line change 1
1
// RUN: %empty-directory(%t)
2
- // RUN: %target-build-swift -target %target-cpu-apple-macosx12 %s -o %t/linking_direct
3
- // RUN: %target-build-swift -target %target-cpu-apple-macosx11 %s -o %t/linking_rpath
4
- // RUN: %target-build-swift -target %target-cpu-apple-macosx10.15 %s -o %t/linking_rpath_old
2
+ // RUN: %target-build-swift -target %target-cpu-apple-macosx12 %s -o %t/linking_direct 2>&1 | %FileCheck -allow-empty -check-prefix CHECK-BUILD-ERRORS %s
3
+ // RUN: %target-build-swift -target %target-cpu-apple-macosx11 %s -o %t/linking_rpath 2>&1 | %FileCheck -allow-empty -check-prefix CHECK-BUILD-ERRORS %s
4
+ // RUN: %target-build-swift -target %target-cpu-apple-macosx10.15 %s -o %t/linking_rpath_old 2>&1 | %FileCheck -allow-empty -check-prefix CHECK-BUILD-ERRORS %s
5
+
6
+ // Make sure the linker didn't emit any version mismatch warnings.
7
+ // CHECK-BUILD-ERRORS-NOT: was built for newer 'macOS' version
5
8
6
9
// RUN: otool -L %t/linking_direct | %FileCheck -check-prefix CHECK-DIRECT %s
7
10
// RUN: otool -L %t/linking_rpath | %FileCheck -check-prefix CHECK-RPATH %s
You can’t perform that action at this time.
0 commit comments