Skip to content

Introduce fake symbols that were present with the old concurrency ABI. #38088

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions stdlib/public/Concurrency/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ add_swift_target_library(swift_Concurrency ${SWIFT_STDLIB_LIBRARY_BUILD_TYPES} I
AsyncThrowingMapSequence.swift
AsyncThrowingPrefixWhileSequence.swift
GlobalActor.swift
LinkCompatibilityShims.cpp
MainActor.swift
PartialAsyncTask.swift
SourceCompatibilityShims.swift
Expand Down
26 changes: 26 additions & 0 deletions stdlib/public/Concurrency/LinkCompatibilityShims.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2020 - 2021 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/LICENSE.txt for license information
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
//
//===----------------------------------------------------------------------===//
// This file provides link compatibility shims to work through some ABI
// changes.
//===----------------------------------------------------------------------===//
#include "swift/Runtime/Config.h"

#define OLD_SYMBOL(NAME) \
SWIFT_EXPORT_FROM(swift_Concurrency) extern "C" void const * const NAME = nullptr;

OLD_SYMBOL($ss4TaskV6HandleVMn)
OLD_SYMBOL($ss4TaskV8PriorityOMa)
OLD_SYMBOL($ss4TaskV8PriorityO11unspecifiedyA2DmFWC)
OLD_SYMBOL($ss6detach8priority9operations4TaskV6HandleVy_xs5NeverOGAE8PriorityO_xyYaYbcntlF)
OLD_SYMBOL($ss6detach8priority9operations4TaskV6HandleVy_xs5NeverOGAE8PriorityO_xyYaYbcntlFfA_)
OLD_SYMBOL($ss18UnsafeContinuationVMn)