| ... | @@ -264,7 +264,12 @@ pub fn targetTriple(allocator: Allocator, target: std.Target) ![]const u8 { | ... | @@ -264,7 +264,12 @@ pub fn targetTriple(allocator: Allocator, target: std.Target) ![]const u8 { |
| 264 | .eabihf => "eabihf", | 264 | .eabihf => "eabihf", |
| 265 | .android => "android", | 265 | .android => "android", |
| 266 | .androideabi => "androideabi", | 266 | .androideabi => "androideabi", |
| 267 | .musl => "musl", | 267 | .musl => switch (target.os.tag) { |
| | 268 | // For WASI/Emscripten, "musl" refers to the libc, not really the ABI. |
| | 269 | // "unknown" provides better compatibility with LLVM-based tooling for these targets. |
| | 270 | .wasi, .emscripten => "unknown", |
| | 271 | else => "musl", |
| | 272 | }, |
| 268 | .muslabin32 => "musl", // Should be muslabin32 in LLVM 20. | 273 | .muslabin32 => "musl", // Should be muslabin32 in LLVM 20. |
| 269 | .muslabi64 => "musl", // Should be muslabi64 in LLVM 20. | 274 | .muslabi64 => "musl", // Should be muslabi64 in LLVM 20. |
| 270 | .musleabi => "musleabi", | 275 | .musleabi => "musleabi", |