summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Pall <mike>2022-07-19 12:53:34 +0200
committerMike Pall <mike>2022-07-19 12:53:34 +0200
commit5677985dc1f19cf0a67112f4365c7fb79237fa16 (patch)
treed6f07a6edc8471634e4c035881782b9736e58392
parent50936d784474747b4569d988767f1b5bab8bb6d0 (diff)
downloadluajit2-5677985dc1f19cf0a67112f4365c7fb79237fa16.tar.gz
ARM64: Allow building with unwinding disabled.
-rw-r--r--src/vm_arm64.dasc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vm_arm64.dasc b/src/vm_arm64.dasc
index f5f1b5f1..3448d0d2 100644
--- a/src/vm_arm64.dasc
+++ b/src/vm_arm64.dasc
@@ -3988,6 +3988,7 @@ static void emit_asm_debug(BuildCtx *ctx)
"\t.align 3\n"
".LEFDE1:\n\n", (int)ctx->codesz - fcofs);
#endif
+#if !LJ_NO_UNWIND
fprintf(ctx->fp, "\t.section .eh_frame,\"a\",%%progbits\n");
fprintf(ctx->fp,
".Lframe1:\n"
@@ -4056,6 +4057,7 @@ static void emit_asm_debug(BuildCtx *ctx)
"\t.align 3\n"
".LEFDE3:\n\n", (int)ctx->codesz - fcofs);
#endif
+#endif
break;
#if !LJ_NO_UNWIND
case BUILD_machasm: {