Skip to content

Commit 0da75fa

Browse files
authored
Missing an explicit include of <mach-o/dyld.h> on Apple platforms. (#932)
On some Apple platforms (e.g. iOS), the set of includes we have in `_TestingInternals` doesn't transitively include dyld.h, causing a build failure when building for those platforms. So explicitly include it. ### Checklist: - [x] Code and documentation should follow the style of the [Style Guide](https://github.com/apple/swift-testing/blob/main/Documentation/StyleGuide.md). - [x] If public symbols are renamed or modified, DocC references should be updated.
1 parent 65cb40a commit 0da75fa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Sources/_TestingInternals/include/Includes.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,10 @@
127127
#if !SWT_NO_LIBDISPATCH
128128
#include <dispatch/dispatch.h>
129129
#endif
130+
131+
#if !SWT_NO_DYNAMIC_LINKING
132+
#include <mach-o/dyld.h>
133+
#endif
130134
#endif
131135

132136
#if defined(__FreeBSD__)

0 commit comments

Comments
 (0)