Skip to content

Commit

Permalink
std.Target: Specify dynamic linker and C type sizes for serenity
Browse files Browse the repository at this point in the history
  • Loading branch information
linusg authored and andrewrk committed Aug 4, 2024
1 parent a931bfa commit a182932
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/std/Target.zig
Original file line number Diff line number Diff line change
Expand Up @@ -1771,6 +1771,8 @@ pub const DynamicLinker = struct {
.visionos,
=> init("/usr/lib/dyld"),

.serenity => init("/usr/lib/Loader.so"),

// Operating systems in this list have been verified as not having a standard
// dynamic linker path.
.freestanding,
Expand All @@ -1783,7 +1785,6 @@ pub const DynamicLinker = struct {
.vulkan,
.other,
.plan9,
.serenity,
=> none,

// TODO revisit when multi-arch for Haiku is available
Expand Down Expand Up @@ -2086,6 +2087,7 @@ pub fn c_type_bit_size(target: Target, c_type: CType) u16 {
.haiku,
.fuchsia,
.minix,
.serenity,
=> switch (target.cpu.arch) {
.msp430 => switch (c_type) {
.char => return 8,
Expand Down Expand Up @@ -2291,7 +2293,6 @@ pub fn c_type_bit_size(target: Target, c_type: CType) u16 {
.driverkit,
.shadermodel,
.liteos,
.serenity,
=> @panic("TODO specify the C integer and float type sizes for this OS"),
}
}
Expand Down

0 comments on commit a182932

Please sign in to comment.