mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 15:14:08 +00:00
macOS: Workaround for buggy XCode 15.0 - 15.2 linker.
Thanks to Carlo Cabrera. #1283
This commit is contained in:
parent
2240d84464
commit
b2915e9ab5
@ -339,6 +339,10 @@ void emit_asm(BuildCtx *ctx)
|
|||||||
fprintf(ctx->fp, "\t.ident \"%s\"\n", ctx->dasm_ident);
|
fprintf(ctx->fp, "\t.ident \"%s\"\n", ctx->dasm_ident);
|
||||||
break;
|
break;
|
||||||
case BUILD_machasm:
|
case BUILD_machasm:
|
||||||
|
#if defined(__apple_build_version__) && __apple_build_version__ >= 15000000 && __apple_build_version__ < 15000300
|
||||||
|
/* Workaround for XCode 15.0 - 15.2. */
|
||||||
|
fprintf(ctx->fp, "\t.subsections_via_symbols\n");
|
||||||
|
#endif
|
||||||
fprintf(ctx->fp,
|
fprintf(ctx->fp,
|
||||||
"\t.cstring\n"
|
"\t.cstring\n"
|
||||||
"\t.ascii \"%s\\0\"\n", ctx->dasm_ident);
|
"\t.ascii \"%s\\0\"\n", ctx->dasm_ident);
|
||||||
|
Loading…
Reference in New Issue
Block a user