commit 6fe2fb6cdb5809101b5891add769a630c3f0d890 (tree)
parent 280195038a8f3a364ff95adb5d3799f586e5b695
Author: Michael Dusan <michael.dusan@gmail.com>
Date: Sat, 27 Feb 2021 13:09:27 -0500
std.Target.Abi: add gnuilp32
Diffstat:
3 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/lib/std/target.zig b/lib/std/target.zig
@@ -443,6 +443,7 @@ pub const Target = struct {
gnueabi,
gnueabihf,
gnux32,
+ gnuilp32,
code16,
eabi,
eabihf,
diff --git a/src/codegen/llvm.zig b/src/codegen/llvm.zig
@@ -127,6 +127,7 @@ pub fn targetTriple(allocator: *Allocator, target: std.Target) ![:0]u8 {
.gnueabi => "gnueabi",
.gnueabihf => "gnueabihf",
.gnux32 => "gnux32",
+ .gnuilp32 => "gnuilp32",
.code16 => "code16",
.eabi => "eabi",
.eabihf => "eabihf",
diff --git a/src/target.zig b/src/target.zig
@@ -71,6 +71,7 @@ pub fn libCGenericName(target: std.Target) [:0]const u8 {
.gnueabi,
.gnueabihf,
.gnux32,
+ .gnuilp32,
=> return "glibc",
.musl,
.musleabi,