libCGenericName
Function parameters
Parameters
- target:*const std.Target
The filesystem layout of darwin SDK elements.
Types
- DarwinSdkLayout
- The filesystem layout of darwin SDK elements.
Functions in this namespace
Functions
Source
Implementation
fn libCGenericName(target: *const std.Target) [:0]const u8 {
switch (target.os.tag) {
.windows => return "mingw",
.macos, .ios, .tvos, .watchos, .visionos => return "darwin",
.freebsd => return "freebsd",
.netbsd => return "netbsd",
else => {},
}
switch (target.abi) {
.gnu,
.gnuabin32,
.gnuabi64,
.gnueabi,
.gnueabihf,
.gnuf32,
.gnusf,
.gnux32,
=> return "glibc",
.musl,
.muslabin32,
.muslabi64,
.musleabi,
.musleabihf,
.muslf32,
.muslsf,
.muslx32,
.none,
.ohos,
.ohoseabi,
=> return "musl",
.code16,
.eabi,
.eabihf,
.ilp32,
.android,
.androideabi,
.msvc,
.itanium,
.cygnus,
.simulator,
.macabi,
=> unreachable,
}
}