diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2021-11-30 00:13:07 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-11-30 00:13:07 -0700 |
| commit | 902df103c6151c257c90de9ba5f29f7f4b9dbea2 (patch) | |
| tree | 16a522f3c8bbe34b56038d4810bf2487e32e2d85 /build.zig | |
| parent | 173d56213b60fc570b6ba3922ee1d40bbf0d0e36 (diff) | |
| download | zig-902df103c6151c257c90de9ba5f29f7f4b9dbea2.tar.gz zig-902df103c6151c257c90de9ba5f29f7f4b9dbea2.zip | |
std lib API deprecations for the upcoming 0.9.0 release
See #3811
Diffstat (limited to 'build.zig')
| -rw-r--r-- | build.zig | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -3,7 +3,6 @@ const builtin = std.builtin; const Builder = std.build.Builder; const tests = @import("test/tests.zig"); const BufMap = std.BufMap; -const warn = std.debug.warn; const mem = std.mem; const ArrayList = std.ArrayList; const io = std.io; @@ -558,9 +557,9 @@ fn addCxxKnownPath( const path_unpadded = mem.tokenize(u8, path_padded, "\r\n").next().?; if (mem.eql(u8, path_unpadded, objname)) { if (errtxt) |msg| { - warn("{s}", .{msg}); + std.debug.print("{s}", .{msg}); } else { - warn("Unable to determine path to {s}\n", .{objname}); + std.debug.print("Unable to determine path to {s}\n", .{objname}); } return error.RequiredLibraryNotFound; } @@ -687,7 +686,7 @@ fn findAndParseConfigH(b: *Builder, config_h_path_option: ?[]const u8) ?CMakeCon } fn toNativePathSep(b: *Builder, s: []const u8) []u8 { - const duplicated = mem.dupe(b.allocator, u8, s) catch unreachable; + const duplicated = b.allocator.dupe(u8, s) catch unreachable; for (duplicated) |*byte| switch (byte.*) { '/' => byte.* = fs.path.sep, else => {}, |
