diff options
| author | Jan Philipp Hafer <anon_1plus1equals3@mailbox.org> | 2023-10-19 22:36:11 +0200 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2023-10-22 14:47:20 -0400 |
| commit | fd2239bde9e2051a32fb25c50c732a40d4afccd0 (patch) | |
| tree | 4adce729cd1ed961e617e6a02413f179a2236885 /build.zig | |
| parent | d8c067966fe88e15f9de5c42b83f1c5fbed550e4 (diff) | |
| download | zig-fd2239bde9e2051a32fb25c50c732a40d4afccd0.tar.gz zig-fd2239bde9e2051a32fb25c50c732a40d4afccd0.zip | |
child_process + Build: rename exec to run + all related code
Justification: exec, execv etc are unix concepts and portable version
should be called differently.
Do no touch non-Zig code. Adjust error names as well, if associated.
Closes #5853.
Diffstat (limited to 'build.zig')
| -rw-r--r-- | build.zig | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -255,7 +255,7 @@ pub fn build(b: *std.Build) !void { const version_string = b.fmt("{d}.{d}.{d}", .{ zig_version.major, zig_version.minor, zig_version.patch }); var code: u8 = undefined; - const git_describe_untrimmed = b.execAllowFail(&[_][]const u8{ + const git_describe_untrimmed = b.runAllowFail(&[_][]const u8{ "git", "-C", b.build_root.path orelse ".", "describe", "--match", "*.*.*", "--tags", }, &code, .Ignore) catch { break :v version_string; @@ -738,9 +738,9 @@ fn addCxxKnownPath( return error.RequiredLibraryNotFound; const path_padded = if (ctx.cxx_compiler_arg1.len > 0) - b.exec(&.{ ctx.cxx_compiler, ctx.cxx_compiler_arg1, b.fmt("-print-file-name={s}", .{objname}) }) + b.run(&.{ ctx.cxx_compiler, ctx.cxx_compiler_arg1, b.fmt("-print-file-name={s}", .{objname}) }) else - b.exec(&.{ ctx.cxx_compiler, b.fmt("-print-file-name={s}", .{objname}) }); + b.run(&.{ ctx.cxx_compiler, b.fmt("-print-file-name={s}", .{objname}) }); var tokenizer = mem.tokenizeAny(u8, path_padded, "\r\n"); const path_unpadded = tokenizer.next().?; if (mem.eql(u8, path_unpadded, objname)) { |
