Skip to content

Commit 59df77d

Browse files
authored
Merge pull request #1699 from eeckstein/mangling-prefix
Adapt for the mangling prefix change ($S -> $s)
2 parents 68c0749 + cfca892 commit 59df77d

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

CoreFoundation/Base.subproj/CFInternal.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -409,9 +409,9 @@ CF_EXPORT void * __CFConstantStringClassReferencePtr;
409409
#if DEPLOYMENT_RUNTIME_SWIFT
410410

411411
#if TARGET_OS_MAC
412-
#define __CFConstantStringClassReference $S15SwiftFoundation19_NSCFConstantStringCN
412+
#define __CFConstantStringClassReference $s15SwiftFoundation19_NSCFConstantStringCN
413413
#else
414-
#define __CFConstantStringClassReference $S10Foundation19_NSCFConstantStringCN
414+
#define __CFConstantStringClassReference $s10Foundation19_NSCFConstantStringCN
415415
#endif
416416

417417
CF_EXPORT void *__CFConstantStringClassReference[];

CoreFoundation/Base.subproj/SymbolAliases

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,3 +98,8 @@ _kCFNumberFormatterZeroSymbolKey _kCFNumberFormatterZeroSymbol
9898
_kCFNumberFormatterUsesCharacterDirectionKey _kCFNumberFormatterUsesCharacterDirection
9999
_kCFDateFormatterUsesCharacterDirectionKey _kCFDateFormatterUsesCharacterDirection
100100
_kCFDateFormatterCalendarIdentifierKey _kCFDateFormatterCalendarName
101+
102+
# Workaround for being able to compile with a swift compiler with the old mangling prefix $S.
103+
# This can eventually be removed if everyone compiles with the ABI-stable Swift 5.0 compiler.
104+
_$S15SwiftFoundation19_NSCFConstantStringCN _$s15SwiftFoundation19_NSCFConstantStringCN
105+

0 commit comments

Comments
 (0)