Skip to content

Commit 62e7139

Browse files
authored
Disable bincompat checks in Bincompat.cpp when SWIFT_RUNTIME_OS_VERSIONING is off. (#39009)
1 parent 382f04a commit 62e7139

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/runtime/Bincompat.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#include <stdint.h>
1919

2020
// If this is an Apple OS, use the Apple binary compatibility rules
21-
#if __has_include(<mach-o/dyld_priv.h>)
21+
#if __has_include(<mach-o/dyld_priv.h>) && defined(SWIFT_RUNTIME_OS_VERSIONING)
2222
#include <mach-o/dyld_priv.h>
2323
#ifndef BINARY_COMPATIBILITY_APPLE
2424
#define BINARY_COMPATIBILITY_APPLE 1

0 commit comments

Comments
 (0)