|
100 | 100 | /// from ObjC classes?
|
101 | 101 | #ifndef SWIFT_CLASS_IS_SWIFT_MASK
|
102 | 102 |
|
103 |
| -// Non-Apple platforms always use 1. |
104 |
| -# if !defined(__APPLE__) |
105 |
| -# define SWIFT_CLASS_IS_SWIFT_MASK 1ULL |
106 |
| - |
107 |
| -// Builds for Swift-in-the-OS always use 2. |
108 |
| -# elif SWIFT_BNI_OS_BUILD |
109 |
| -# define SWIFT_CLASS_IS_SWIFT_MASK 2ULL |
110 |
| - |
111 |
| -// Builds for Xcode always use 1. |
112 |
| -# elif SWIFT_BNI_XCODE_BUILD |
113 |
| -# define SWIFT_CLASS_IS_SWIFT_MASK 1ULL |
114 |
| - |
115 | 103 | // Compatibility hook libraries cannot rely on the "is swift" bit being either
|
116 | 104 | // value, since they must work with both OS and Xcode versions of the libraries.
|
117 | 105 | // Generate a reference to a nonexistent symbol so that we get obvious linker
|
118 | 106 | // errors if we try.
|
119 |
| -# elif SWIFT_COMPATIBILITY_LIBRARY |
| 107 | +# if SWIFT_COMPATIBILITY_LIBRARY |
120 | 108 | extern uintptr_t __COMPATIBILITY_LIBRARIES_CANNOT_CHECK_THE_IS_SWIFT_BIT_DIRECTLY__;
|
121 | 109 | # define SWIFT_CLASS_IS_SWIFT_MASK __COMPATIBILITY_LIBRARIES_CANNOT_CHECK_THE_IS_SWIFT_BIT_DIRECTLY__
|
122 | 110 |
|
123 |
| -// Other builds (such as local builds on developers' computers) |
124 |
| -// dynamically choose the bit at runtime based on the current OS |
125 |
| -// version. |
| 111 | +// Apple platforms always use 2 |
| 112 | +# elif defined(__APPLE__) |
| 113 | +# define SWIFT_CLASS_IS_SWIFT_MASK 2ULL |
| 114 | + |
| 115 | +// Non-Apple platforms always use 1. |
126 | 116 | # else
|
127 |
| -# define SWIFT_CLASS_IS_SWIFT_MASK _swift_classIsSwiftMask |
128 |
| -# define SWIFT_CLASS_IS_SWIFT_MASK_GLOBAL_VARIABLE 1 |
129 |
| -# define SWIFT_BUILD_HAS_BACK_DEPLOYMENT 1 |
130 |
| -# include "BackDeployment.h" |
| 117 | +# define SWIFT_CLASS_IS_SWIFT_MASK 1ULL |
131 | 118 |
|
132 | 119 | # endif
|
133 | 120 | #endif
|
|
0 commit comments