authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-12-15 11:56:43+01:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-12-15 11:57:19+01:00
log7d4e8be0de7cee4ccbf3290cd7c6da85d679052c
treef1223e9650d8e2083862b6d8bce82e4487c4c1bd
parentaf89bb05d392b34a9ac257d166df1c794542f2e8
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

std.Target: Remove special case for wasm in Abi.default().

It'll still pick .musl for os.tag == .wasi.

1 files changed, 1 insertions(+), 1 deletions(-)

lib/std/Target.zig+1-1
...@@ -815,7 +815,7 @@ pub const Abi = enum {...@@ -815,7 +815,7 @@ pub const Abi = enum {
815 // - vertex815 // - vertex
816816
817 pub fn default(arch: Cpu.Arch, os: Os) Abi {817 pub fn default(arch: Cpu.Arch, os: Os) Abi {
818 return if (arch.isWasm()) .musl else switch (os.tag) {818 return switch (os.tag) {
819 .freestanding, .other => switch (arch) {819 .freestanding, .other => switch (arch) {
820 // Soft float is usually a sane default for freestanding.820 // Soft float is usually a sane default for freestanding.
821 .arm,821 .arm,