We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2ff28f8 + 5603f61 commit 38a8ccdCopy full SHA for 38a8ccd
Sources/_AtomicsShims/src/_AtomicsShims.c
@@ -16,6 +16,13 @@
16
// like calls to swift_retain_n/swift_release_n appearing in Swift code, not
17
// even when imported through C. (See https://bugs.swift.org/browse/SR-13708)
18
19
+#if defined(__APPLE__) && defined(__MACH__)
20
+// Ensure we link with libswiftCore.dylib even when the build system decides
21
+// to build this module as a standalone library.
22
+// (See https://github.com/apple/swift-atomics/issues/55)
23
+__asm__(".linker_option \"-lswiftCore\"\n");
24
+#endif
25
+
26
void _sa_retain_n(void *object, uint32_t n)
27
{
28
extern void *swift_retain_n(void *object, uint32_t n);
0 commit comments