aboutsummaryrefslogtreecommitdiff
path: root/lib/std/Build/Step/Run.zig
diff options
context:
space:
mode:
authorMatthew Lugg <mlugg@mlugg.co.uk>2025-05-21 10:33:30 +0100
committerGitHub <noreply@github.com>2025-05-21 10:33:30 +0100
commitef92c156b5ce1fade3106fc0d79af36bb4409246 (patch)
tree1331b959b7cbfca6cc222426a56234317a94af97 /lib/std/Build/Step/Run.zig
parentf925e1379aa53228610df9b7ffc3d87dbcce0dbb (diff)
parentcdba1d591aae2f5ac5dcd5ae186f5696f218710c (diff)
downloadzig-ef92c156b5ce1fade3106fc0d79af36bb4409246.tar.gz
zig-ef92c156b5ce1fade3106fc0d79af36bb4409246.zip
Merge pull request #23946 from mlugg/build-step-run-cwd
std.Build.Step.Run: inherit build runner cwd
Diffstat (limited to 'lib/std/Build/Step/Run.zig')
-rw-r--r--lib/std/Build/Step/Run.zig3
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/std/Build/Step/Run.zig b/lib/std/Build/Step/Run.zig
index eede464ab6..b7ad1307fb 100644
--- a/lib/std/Build/Step/Run.zig
+++ b/lib/std/Build/Step/Run.zig
@@ -1334,9 +1334,6 @@ fn spawnChildAndCollect(
var child = std.process.Child.init(argv, arena);
if (run.cwd) |lazy_cwd| {
child.cwd = lazy_cwd.getPath2(b, &run.step);
- } else {
- child.cwd = b.build_root.path;
- child.cwd_dir = b.build_root.handle;
}
child.env_map = run.env_map orelse &b.graph.env_map;
child.request_resource_usage_statistics = true;