Skip to content

Commit f62b28a

Browse files
committed
chore: clean up code
1 parent 9798e57 commit f62b28a

3 files changed

Lines changed: 3 additions & 6 deletions

File tree

build.zig

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,10 +142,7 @@ pub fn build(b: *std.Build) !void {
142142
var term_list = std.mem.tokenizeScalar(u8, terms, ',');
143143
while (term_list.next()) |term| {
144144
if (std.mem.eql(u8, term, "aquaterm")) {
145-
if (target.result.os.tag != .macos) {
146-
std.debug.print("The AquaTerm terminal requires macOS but the target OS is {s}.\n", .{@tagName(target.result.os.tag)});
147-
return error.InvalidOSForAquaTerm;
148-
}
145+
if (target.result.os.tag != .macos) continue;
149146
enable_aquaterm = true;
150147
extra_config.addValues(.{
151148
.HAVE_FRAMEWORK_AQUATERM = true,

build.zig.zon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.{
22
.name = .ziguplot,
33
.version = "0.0.1",
4-
.minimum_zig_version = "0.15.1",
4+
.minimum_zig_version = "0.15.2",
55
.dependencies = .{
66
.gnuplot = .{
77
.url = "https://github.com/salewski/gnuplot-main-mirror/archive/fdd777585618a34af281969e3d6638fe4bc317f7.tar.gz",

deps/aquaterm/build.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const std = @import("std");
33
pub fn build(b: *std.Build) !void {
44
const target = b.standardTargetOptions(.{});
55
if (!target.result.os.tag.isDarwin()) {
6-
std.debug.print("The target should be macOS but is {s}.\n", .{@tagName(target.result.os.tag)});
6+
std.debug.print("The target should be macOS but is {t}.\n", .{target.result.os.tag});
77
return error.InvalidOS;
88
}
99

0 commit comments

Comments
 (0)