zig/lib/std/Build
mlugg fe855691f6
std.Build.Step.Run: inherit build runner cwd
Right now, if you override the build root with `--build-root`, then
`Run` steps can fail to execute because of incorrect path handling in
the compiler: `std.process.Child` gets a cwd-relative path, but also has
its cwd set to the build root. The latter behavior is really weird; it
doesn't match my expectations, nor does it match how we spawn child
`zig` processes. So, this commit makes the child process inherit the
build runner's cwd, as `LazyPath.getPath2` *expects* it to.

After investigating, this behavior dates all the way back to 2017; it
was introduced in 4543413. So, there isn't any clear/documented reason
for this; it should be safe to revert, since under the modern `LazyPath`
system it is strictly a bug AFAICT.
2025-05-21 01:45:05 +01:00
..
Cache DepTokenizer: allow space between target and colon 2025-03-24 15:31:03 +01:00
Fuzz adjust runtime page size APIs 2025-02-06 14:23:23 -08:00
Step std.Build.Step.Run: inherit build runner cwd 2025-05-21 01:45:05 +01:00
Cache.zig std.Build.Cache: change contract of addFilePostContents 2025-05-18 17:10:04 +01:00
Fuzz.zig Make -freference-trace work without colors 2025-01-30 13:02:06 +01:00
Module.zig std.Build: Make no_builtin a property of Module instead of Step.Compile. 2025-05-12 17:08:22 +02:00
Step.zig std.Build.Cache: fix several bugs 2025-04-27 05:42:18 +01:00
Watch.zig std: eradicate u29 and embrace std.mem.Alignment 2025-04-13 02:20:32 -04:00