diff options
author | Mike Pall <mike> | 2024-10-02 12:12:56 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2024-10-02 12:12:56 +0200 |
commit | b2915e9ab55b999429b4d1931097064c4e17de53 (patch) | |
tree | ff611d56ef9a6ab5f1f59016666c586e364d63aa /src/host | |
parent | 2240d84464cc3dcb22fd976f1db162b36b5b52d5 (diff) | |
download | luajit-b2915e9ab55b999429b4d1931097064c4e17de53.tar.gz luajit-b2915e9ab55b999429b4d1931097064c4e17de53.tar.bz2 luajit-b2915e9ab55b999429b4d1931097064c4e17de53.zip |
macOS: Workaround for buggy XCode 15.0 - 15.2 linker.
Thanks to Carlo Cabrera. #1283
Diffstat (limited to 'src/host')
-rw-r--r-- | src/host/buildvm_asm.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/host/buildvm_asm.c b/src/host/buildvm_asm.c index e7c5de70..1b261206 100644 --- a/src/host/buildvm_asm.c +++ b/src/host/buildvm_asm.c | |||
@@ -339,6 +339,10 @@ void emit_asm(BuildCtx *ctx) | |||
339 | fprintf(ctx->fp, "\t.ident \"%s\"\n", ctx->dasm_ident); | 339 | fprintf(ctx->fp, "\t.ident \"%s\"\n", ctx->dasm_ident); |
340 | break; | 340 | break; |
341 | case BUILD_machasm: | 341 | case BUILD_machasm: |
342 | #if defined(__apple_build_version__) && __apple_build_version__ >= 15000000 && __apple_build_version__ < 15000300 | ||
343 | /* Workaround for XCode 15.0 - 15.2. */ | ||
344 | fprintf(ctx->fp, "\t.subsections_via_symbols\n"); | ||
345 | #endif | ||
342 | fprintf(ctx->fp, | 346 | fprintf(ctx->fp, |
343 | "\t.cstring\n" | 347 | "\t.cstring\n" |
344 | "\t.ascii \"%s\\0\"\n", ctx->dasm_ident); | 348 | "\t.ascii \"%s\\0\"\n", ctx->dasm_ident); |