zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit a5bc9cbb15f415f3c8bded3b8026c7cf326b7c12 (tree)
parent d61e4ef8b00f8c66389c5bf614d701cafc23b1ae
Author: Alex Rønne Petersen <alex@alexrp.com>
Date:   Wed, 16 Oct 2024 06:41:00 +0200

llvm: Fix lowering of gnuilp32 ABI to be gnu_ilp32.

LLVM doesn't even recognize the gnuilp32 spelling as an alternative.

Diffstat:
Mlib/compiler/aro/aro/target.zig | 2+-
Msrc/codegen/llvm.zig | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/compiler/aro/aro/target.zig b/lib/compiler/aro/aro/target.zig @@ -693,7 +693,7 @@ pub fn toLLVMTriple(target: std.Target, buf: []u8) []const u8 { .gnuf32 => "gnuf32", .gnusf => "gnusf", .gnux32 => "gnux32", - .gnuilp32 => "gnuilp32", + .gnuilp32 => "gnu_ilp32", .code16 => "code16", .eabi => "eabi", .eabihf => "eabihf", diff --git a/src/codegen/llvm.zig b/src/codegen/llvm.zig @@ -263,7 +263,7 @@ pub fn targetTriple(allocator: Allocator, target: std.Target) ![]const u8 { .gnuf32 => "gnuf32", .gnusf => "gnusf", .gnux32 => "gnux32", - .gnuilp32 => "gnuilp32", + .gnuilp32 => "gnu_ilp32", .code16 => "code16", .eabi => "eabi", .eabihf => "eabihf",