Explorar o código

OSX: Fix build with recent XCode.

Contributed by Joseph Zupko.
Mike Pall %!s(int64=8) %!d(string=hai) anos
pai
achega
247b3624ff
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      src/host/buildvm_asm.c

+ 2 - 1
src/host/buildvm_asm.c

@@ -183,7 +183,8 @@ static void emit_asm_label(BuildCtx *ctx, const char *name, int size, int isfunc
   case BUILD_machasm:
     fprintf(ctx->fp,
       "\n\t.private_extern %s\n"
-      "%s:\n", name, name);
+      "\t.no_dead_strip %s\n"
+      "%s:\n", name, name, name);
     break;
   default:
     break;