support building with musl, although it doesn't run currently

This commit is contained in:
Mitchell Hashimoto
2022-07-17 19:40:48 -07:00
parent fbd79ee585
commit 312434a4b7

View File

@ -13,7 +13,7 @@ pub fn build(b: *std.build.Builder) !void {
const target = target: { const target = target: {
var result = b.standardTargetOptions(.{}); var result = b.standardTargetOptions(.{});
if (result.isLinux()) { if (result.isLinux() and result.isGnuLibC()) {
// https://github.com/ziglang/zig/issues/9485 // https://github.com/ziglang/zig/issues/9485
result.glibc_version = .{ .major = 2, .minor = 28 }; result.glibc_version = .{ .major = 2, .minor = 28 };
} }