Skip to content

Commit 247b362

Browse files
author
Mike Pall
committed
OSX: Fix build with recent XCode.
Contributed by Joseph Zupko.
1 parent e205ad0 commit 247b362

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/host/buildvm_asm.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,8 @@ static void emit_asm_label(BuildCtx *ctx, const char *name, int size, int isfunc
183183
case BUILD_machasm:
184184
fprintf(ctx->fp,
185185
"\n\t.private_extern %s\n"
186-
"%s:\n", name, name);
186+
"\t.no_dead_strip %s\n"
187+
"%s:\n", name, name, name);
187188
break;
188189
default:
189190
break;

0 commit comments

Comments
 (0)