aboutsummaryrefslogtreecommitdiff
path: root/src/codegen
diff options
context:
space:
mode:
authorAlex Rønne Petersen <alex@alexrp.com>2024-10-16 04:36:40 +0200
committerAlex Rønne Petersen <alex@alexrp.com>2024-11-02 10:42:53 +0100
commit270fbbcd86b02fcd02ad9b818d9de39dfe671754 (patch)
treec81290bd31fdbfed3ba1a1d34394e271f30b80f2 /src/codegen
parent8045268698bb46e954c886b913fe216c59f5824e (diff)
downloadzig-270fbbcd86b02fcd02ad9b818d9de39dfe671754.tar.gz
zig-270fbbcd86b02fcd02ad9b818d9de39dfe671754.zip
std.Target: Add muslabin32 and muslabi64 tags to Abi.
Once we upgrade to LLVM 20, these should be lowered verbatim rather than to simply musl. Similarly, the special case in llvmMachineAbi() should go away.
Diffstat (limited to 'src/codegen')
-rw-r--r--src/codegen/llvm.zig2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/codegen/llvm.zig b/src/codegen/llvm.zig
index fc7d26a815..0a1073efcf 100644
--- a/src/codegen/llvm.zig
+++ b/src/codegen/llvm.zig
@@ -270,6 +270,8 @@ pub fn targetTriple(allocator: Allocator, target: std.Target) ![]const u8 {
.android => "android",
.androideabi => "androideabi",
.musl => "musl",
+ .muslabin32 => "musl", // Should be muslabin32 in LLVM 20.
+ .muslabi64 => "musl", // Should be muslabi64 in LLVM 20.
.musleabi => "musleabi",
.musleabihf => "musleabihf",
.muslx32 => "muslx32",