diff options
author | Dave Gauer <dave@ratfactor.com> | 2021-10-09 10:19:34 -0400 |
---|---|---|
committer | Dave Gauer <dave@ratfactor.com> | 2021-10-09 10:19:34 -0400 |
commit | c3276987daf446a6d7de5f8ea495b4c4630ae92e (patch) | |
tree | b450c0ac968088398582c3bc22a7b0ab66f21c42 /build.zig | |
parent | 38755909b23f3f63c6fe613edf9895d0f97f9f1d (diff) | |
download | ziglings-c3276987daf446a6d7de5f8ea495b4c4630ae92e.tar.gz ziglings-c3276987daf446a6d7de5f8ea495b4c4630ae92e.tar.bz2 ziglings-c3276987daf446a6d7de5f8ea495b4c4630ae92e.tar.xz ziglings-c3276987daf446a6d7de5f8ea495b4c4630ae92e.zip |
Updated for dev pre-release build v0.9.0-dev.1343
A change in the "build" library imports and some cleanup in the
patches.
Diffstat (limited to 'build.zig')
-rw-r--r-- | build.zig | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -1,4 +1,5 @@ const std = @import("std"); +const builtin = @import("builtin"); const Builder = std.build.Builder; const Step = std.build.Step; const assert = std.debug.assert; @@ -447,11 +448,11 @@ const exercises = [_]Exercise{ /// Check the zig version to make sure it can compile the examples properly. /// This will compile with Zig 0.6.0 and later. fn checkVersion() bool { - if (!@hasDecl(std.builtin, "zig_version")) { + if (!@hasDecl(builtin, "zig_version")) { return false; } - const version = std.builtin.zig_version; + const version = builtin.zig_version; const order = version.order(needed_version); return order != .lt; } @@ -490,7 +491,7 @@ pub fn build(b: *Builder) void { .auto => { if (std.io.getStdErr().supportsAnsiEscapeCodes()) { use_color_escapes = true; - } else if (std.builtin.os.tag == .windows) { + } else if (builtin.os.tag == .windows) { const w32 = struct { const WINAPI = std.os.windows.WINAPI; const DWORD = std.os.windows.DWORD; |