aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2024-08-03 02:37:31 +0100
committerAndrew Kelley <andrew@ziglang.org>2024-08-04 12:03:43 -0700
commita18293214dbe65f74a1420cd5728e40427236f6e (patch)
treeeb293e2c89d8512b058f8c610b49d7abe5a41c24 /lib
parenta931bfada5e358ace980b2f8fbc50ce424ced526 (diff)
downloadzig-a18293214dbe65f74a1420cd5728e40427236f6e.tar.gz
zig-a18293214dbe65f74a1420cd5728e40427236f6e.zip
std.Target: Specify dynamic linker and C type sizes for serenity
Diffstat (limited to 'lib')
-rw-r--r--lib/std/Target.zig5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/std/Target.zig b/lib/std/Target.zig
index 8d9f596072..8a21a7256f 100644
--- a/lib/std/Target.zig
+++ b/lib/std/Target.zig
@@ -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,
@@ -1783,7 +1785,6 @@ pub const DynamicLinker = struct {
.vulkan,
.other,
.plan9,
- .serenity,
=> none,
// TODO revisit when multi-arch for Haiku is available
@@ -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,
@@ -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"),
}
}