mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Bump backward compatibility to 5.4
This commit is contained in:
@@ -29,7 +29,7 @@ using namespace swift;
|
||||
/// The definition of the contents of the override section.
|
||||
///
|
||||
/// The runtime looks in the main executable (not any libraries!) for a
|
||||
/// __swift53_hooks section and uses the hooks defined therein. This struct
|
||||
/// __swift54_hooks section and uses the hooks defined therein. This struct
|
||||
/// defines the layout of that section. These hooks allow extending
|
||||
/// runtime functionality when running apps built with a more recent
|
||||
/// compiler. If additional hooks are needed, they may be added at the
|
||||
@@ -54,7 +54,7 @@ static OverrideSection *getOverrideSectionPtr() {
|
||||
swift_once(&Predicate, [](void *) {
|
||||
size_t Size;
|
||||
OverrideSectionPtr = static_cast<OverrideSection *>(
|
||||
lookupSection("__DATA", "__swift53_hooks", &Size));
|
||||
lookupSection("__DATA", "__swift54_hooks", &Size));
|
||||
if (Size < sizeof(OverrideSection))
|
||||
OverrideSectionPtr = nullptr;
|
||||
}, nullptr);
|
||||
|
||||
Reference in New Issue
Block a user