Skip to content

Commit 5337c8b

Browse files
committed
Preserve legacy behavior on Apple OSes in all environments
1 parent 8048004 commit 5337c8b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

stdlib/public/runtime/Bincompat.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,8 @@ bool useLegacySwiftValueUnboxingInCasting() {
247247
bool useLegacySwiftObjCHashing() {
248248
#if BINARY_COMPATIBILITY_APPLE
249249
return true; // For now, legacy behavior on Apple OSes
250+
#elif SWIFT_TARGET_OS_DARWIN
251+
return true; // For now, legacy behavior on open-source builds for Apple OSes
250252
#else
251253
return false; // Always use the new behavior on non-Apple OSes
252254
#endif

0 commit comments

Comments
 (0)