We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eece2b0 commit 2be0f04Copy full SHA for 2be0f04
stdlib/public/runtime/Bincompat.cpp
@@ -20,6 +20,7 @@
20
#include "swift/Runtime/EnvironmentVariables.h"
21
#include "swift/Threading/Once.h"
22
#include "swift/shims/RuntimeShims.h"
23
+#include "swift/shims/Target.h"
24
#include <stdint.h>
25
26
// If this is an Apple OS, use the Apple binary compatibility rules
@@ -248,7 +249,7 @@ bool useLegacySwiftObjCHashing() {
248
249
#if BINARY_COMPATIBILITY_APPLE
250
return true; // For now, legacy behavior on Apple OSes
251
#elif SWIFT_TARGET_OS_DARWIN
- 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
253
#else
254
return false; // Always use the new behavior on non-Apple OSes
255
#endif
0 commit comments