Skip to content

Commit f29b77f

Browse files
committed
Use weak_import not weak for the optional symbols
1 parent 5003c15 commit f29b77f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/swift/Runtime/Exclusivity.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ void swift_beginAccess(void *pointer, ValueBuffer *buffer,
4545
/// Returns null if the original function (which is passed in \p CurrFn) should
4646
/// be called.
4747
#ifdef __APPLE__
48-
__attribute__((weak))
48+
__attribute__((weak_import))
4949
#endif
5050
SWIFT_RUNTIME_EXPORT
5151
char *swift_getFunctionReplacement(char **ReplFnPtr, char *CurrFn);
@@ -55,7 +55,7 @@ char *swift_getFunctionReplacement(char **ReplFnPtr, char *CurrFn);
5555
/// This function is called from a replacement function to call the original
5656
/// function.
5757
#ifdef __APPLE__
58-
__attribute__((weak))
58+
__attribute__((weak_import))
5959
#endif
6060
SWIFT_RUNTIME_EXPORT
6161
char *swift_getOrigOfReplaceable(char **OrigFnPtr);

0 commit comments

Comments
 (0)