Skip to content

Commit

Permalink
llvm: Fix lowering of gnuilp32 ABI to be gnu_ilp32.
Browse files Browse the repository at this point in the history
LLVM doesn't even recognize the gnuilp32 spelling as an alternative.
  • Loading branch information
alexrp committed Oct 16, 2024
1 parent ca9736f commit bd5a8c0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/compiler/aro/aro/target.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/codegen/llvm.zig
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,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",
Expand Down

0 comments on commit bd5a8c0

Please sign in to comment.