Skip to content

Commit

Permalink
zig update: Handle propeller1/propeller2 in target functions
Browse files Browse the repository at this point in the history
  • Loading branch information
ehaas committed Oct 6, 2024
1 parent 7ed4cb0 commit e2211f4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/aro/target.zig
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,8 @@ pub fn get32BitArchVariant(target: std.Target) ?std.Target {
.spirv32,
.loongarch32,
.xtensa,
.propeller1,
.propeller2,
=> {}, // Already 32 bit

.aarch64 => copy.cpu.arch = .arm,
Expand Down Expand Up @@ -517,6 +519,8 @@ pub fn get64BitArchVariant(target: std.Target) ?std.Target {
.spu_2,
.xcore,
.xtensa,
.propeller1,
.propeller2,
=> return null,

.aarch64,
Expand Down Expand Up @@ -614,6 +618,9 @@ pub fn toLLVMTriple(target: std.Target, buf: []u8) []const u8 {
.ve => "ve",
// Note: spu_2 is not supported in LLVM; this is the Zig arch name
.spu_2 => "spu_2",
// Note: propeller1 and propeller2 are not supported in LLVM; this is the Zig arch name
.propeller1 => "propeller1",
.propeller2 => "propeller2",
};
writer.writeAll(llvm_arch) catch unreachable;
writer.writeByte('-') catch unreachable;
Expand Down

0 comments on commit e2211f4

Please sign in to comment.