Skip to content

Commit db15620

Browse files
authored
Merge pull request #39807 from DougGregor/back-deploy-concurrency-maccatalyst-5.5
2 parents 350109f + 3836d25 commit db15620

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

stdlib/public/Concurrency/linker-support/magic-symbols-for-install-name.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,12 @@
124124
RPATH_INSTALL_NAME_DIRECTIVE(11, 4)
125125
RPATH_INSTALL_NAME_DIRECTIVE(11, 5)
126126
RPATH_INSTALL_NAME_DIRECTIVE(11, 6)
127+
128+
// Link against @rpath/libswift_Concurrency.dylib for macCatalyst < 15.0.
129+
SWIFT_RUNTIME_EXPORT const char ld_previous_macCatalyst
130+
__asm("$ld$previous$@rpath/libswift_Concurrency.dylib$$6$1.0$15.0$");
131+
132+
const char ld_previous_macCatalyst = 0;
127133
#else
128134
#error Unknown target.
129135
#endif

test/Concurrency/Backdeploy/linking.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@
77
// RUN: otool -L %t/linking_rpath | %FileCheck -check-prefix CHECK-RPATH %s
88
// RUN: otool -L %t/linking_rpath_old | %FileCheck -check-prefix CHECK-RPATH %s
99

10+
// RUN: %target-build-swift -disable-autolinking-runtime-compatibility-concurrency -target x86_64-apple-ios15.0-macabi %s -o %t/linking_direct
11+
// RUN: %target-build-swift -disable-autolinking-runtime-compatibility-concurrency -target x86_64-apple-ios14.0-macabi %s -o %t/linking_rpath
12+
13+
// RUN: otool -L %t/linking_direct | %FileCheck -check-prefix CHECK-DIRECT %s
14+
// RUN: otool -L %t/linking_rpath | %FileCheck -check-prefix CHECK-RPATH %s
15+
1016
// REQUIRES: OS=macosx
1117
// REQUIRES: CPU=x86_64
1218

0 commit comments

Comments
 (0)