Skip to content

Commit 199b73d

Browse files
committed
Fix for Darwin
1 parent 08e55d9 commit 199b73d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libcxx/src/include/overridable_function.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ _LIBCPP_END_NAMESPACE_STD
6767

6868
# define _LIBCPP_CAN_DETECT_OVERRIDDEN_FUNCTION 1
6969
# define _LIBCPP_OVERRIDABLE_FUNCTION(symbol, type, name, arglist) \
70-
static type symbol##_impl__ arglist __asm__(_LIBCPP_TOSTRING(symbol##_impl__)); \
70+
static type symbol##_impl__ arglist __asm__("_" _LIBCPP_TOSTRING(symbol##_impl__)); \
7171
__asm__(".globl _" _LIBCPP_TOSTRING(symbol)); \
7272
__asm__(".set _" _LIBCPP_TOSTRING(symbol) ", _" _LIBCPP_TOSTRING(symbol##_impl__)); \
7373
extern __typeof(symbol##_impl__) name __attribute__((weak_import)); \

0 commit comments

Comments
 (0)