diff --git a/build.zig b/build.zig index 40d8f6f..293c65d 100644 --- a/build.zig +++ b/build.zig @@ -14,7 +14,7 @@ pub fn build(b: *std.build.Builder) void { const exe = b.addExecutable("clipboard", "src/main.zig"); exe.setTarget(target); exe.setBuildMode(mode); - if (std.builtin.os.tag == .linux) { + if (target.getOs().tag == .linux) { // LibX11 1.7.2: https://gitlab.freedesktop.org/xorg/lib/libx11/-/archive/libX11-1.7.2/libx11-libX11-1.7.2.tar.gz // LibXfixes 5.0.3: https://gitlab.freedesktop.org/xorg/lib/libxfixes/-/archive/libXfixes-5.0.3/libxfixes-libXfixes-5.0.3.tar.gz // XOrg Proto: https://gitlab.freedesktop.org/xorg/proto/xorgproto/-/archive/xorgproto-2021.5/xorgproto-xorgproto-2021.5.tar.gz @@ -37,7 +37,7 @@ pub fn build(b: *std.build.Builder) void { inline for (dependent_objects) |obj| exe.addObjectFile(obj); } - if (std.builtin.os.tag == .windows) { + if (target.getOs().tag == .windows) { // exe.linkLibC(); // exe.addIncludeDir("/usr/include/"); // exe.linkSystemLibrary("X11");