Skip to content

Commit 2be0f04

Browse files
committed
Missing include
1 parent eece2b0 commit 2be0f04

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

stdlib/public/runtime/Bincompat.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#include "swift/Runtime/EnvironmentVariables.h"
2121
#include "swift/Threading/Once.h"
2222
#include "swift/shims/RuntimeShims.h"
23+
#include "swift/shims/Target.h"
2324
#include <stdint.h>
2425

2526
// If this is an Apple OS, use the Apple binary compatibility rules
@@ -248,7 +249,7 @@ bool useLegacySwiftObjCHashing() {
248249
#if BINARY_COMPATIBILITY_APPLE
249250
return true; // For now, legacy behavior on Apple OSes
250251
#elif SWIFT_TARGET_OS_DARWIN
251-
return true; // For now, legacy behavior on open-source builds for Apple OSes
252+
return true; // For now, use legacy behavior on open-source builds for Apple platforms
252253
#else
253254
return false; // Always use the new behavior on non-Apple OSes
254255
#endif

0 commit comments

Comments
 (0)