Skip to content

Commit 440acea

Browse files
Merge pull request swiftlang#30633 from aschwaighofer/arm64e_does_not_backdeploy
arm64e does not back-deploy
2 parents 76ad4ab + a6c6ddc commit 440acea

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

lib/Basic/Platform.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,9 @@ swift::getSwiftRuntimeCompatibilityVersionForTarget(
397397
const llvm::Triple &Triple) {
398398
unsigned Major, Minor, Micro;
399399

400+
if (Triple.getArchName() == "arm64e")
401+
return llvm::VersionTuple(5, 3);
402+
400403
if (Triple.isMacOSX()) {
401404
Triple.getMacOSXVersion(Major, Minor, Micro);
402405
if (Major == 10) {
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// REQUIRES: CPU=arm64e,OS=ios
2+
3+
// Doesn't autolink compatibility library because target OS doesn't need it
4+
// RUN: %target-swift-frontend -target arm64e-apple-ios11.0 -emit-ir -parse-stdlib %s | %FileCheck -check-prefix=NO-FORCE-LOAD %s
5+
6+
public func foo() {}
7+
8+
// NO-FORCE-LOAD-NOT: FORCE_LOAD
9+
// NO-FORCE-LOAD-NOT: !{!"-lswiftCompatibility50"}
10+
// NO-FORCE-LOAD-NOT: !{!"-lswiftCompatibilityDynamicReplacements"}

0 commit comments

Comments
 (0)