From a5bc9cbb15f415f3c8bded3b8026c7cf326b7c12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Wed, 16 Oct 2024 06:41:00 +0200 Subject: [PATCH] llvm: Fix lowering of gnuilp32 ABI to be gnu_ilp32. LLVM doesn't even recognize the gnuilp32 spelling as an alternative. --- lib/compiler/aro/aro/target.zig | 2 +- src/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 index 5e5a793632..56bc4dd46a 100644 --- 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 index 0a1073efcf..74c1bb1f5d 100644 --- 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",