Skip to content

Commit 588a1eb

Browse files
committed
Ensure that we enabled override hooks in the concurrency back-deployment lib
Fixes rdar://94184066.
1 parent ffb37ed commit 588a1eb

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

stdlib/public/BackDeployConcurrency/CompatibilityOverride.h

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -76,20 +76,13 @@ namespace swift {
7676

7777
#ifdef SWIFT_RUNTIME_NO_COMPATIBILITY_OVERRIDES
7878

79-
// Call directly through to the original implementation when we don't support
80-
// overrides.
81-
#define COMPATIBILITY_OVERRIDE(name, ret, attrs, ccAttrs, namespace, \
82-
typedArgs, namedArgs) \
83-
attrs ccAttrs ret namespace swift_##name COMPATIBILITY_PAREN(typedArgs) { \
84-
return swift_##name##Impl COMPATIBILITY_PAREN(namedArgs); \
85-
}
79+
# error Back-deployment library must always be built with compatibilty overrides
8680

8781
#else // #ifdef SWIFT_RUNTIME_NO_COMPATIBILITY_OVERRIDES
8882

8983
// Override section name computation. `COMPATIBILITY_OVERRIDE_SECTION_NAME` will
9084
// resolve to string literal containing the appropriate section name for the
9185
// current library.
92-
#define COMPATIBILITY_OVERRIDE_SECTION_NAME_swiftRuntime "__swift56_hooks"
9386
#define COMPATIBILITY_OVERRIDE_SECTION_NAME_swift_Concurrency "__s_async_hook"
9487

9588
#define COMPATIBILITY_OVERRIDE_SECTION_NAME \

0 commit comments

Comments
 (0)