File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change 36
36
#if __has_include(<mach-o/dyld_priv.h>)
37
37
#include < mach-o/dyld_priv.h>
38
38
#define DYLD_EXPECTED_SWIFT_OPTIMIZATIONS_VERSION 1u
39
+
40
+ // Redeclare these functions as weak so we can build against a macOS 12 SDK and
41
+ // still test on macOS 11.
42
+ LLVM_ATTRIBUTE_WEAK
43
+ struct _dyld_protocol_conformance_result
44
+ _dyld_find_protocol_conformance (const void *protocolDescriptor,
45
+ const void *metadataType,
46
+ const void *typeDescriptor);
47
+
48
+ LLVM_ATTRIBUTE_WEAK
49
+ struct _dyld_protocol_conformance_result
50
+ _dyld_find_foreign_type_protocol_conformance (const void *protocol,
51
+ const char *foreignTypeIdentityStart,
52
+ size_t foreignTypeIdentityLength);
53
+
54
+ LLVM_ATTRIBUTE_WEAK
55
+ uint32_t _dyld_swift_optimizations_version (void );
39
56
#endif
40
57
41
58
// Set this to 1 to enable logging of calls to the dyld shared cache conformance
You can’t perform that action at this time.
0 commit comments