zig/lib/std/Build
mlugg 36499c251c std.Build.Step.Run: prefix relative path arguments with './'
This is necessary in two cases:

* On POSIX, the exe path (`argv[0]`) must contain a path separator
* Some programs might treat a file named e.g. `-foo` as a flag, which
  can be avoided by passing `./-foo`

Rather than detecting these two cases, just always include the prefix;
there's no harm in it.

Also, if the cwd is specified, include it in the manifest. If the user
has set the cwd of a Run step, it is clearly because this affects the
behavior of the executable somehow, so that cwd path should be a part of
the step's manifest.

Resolves: #24216
2025-06-18 22:45:05 +01:00
..
Cache Build.Cache.Path: fix resolvePosix empty sub_path 2025-06-17 11:06:39 +01:00
Fuzz adjust runtime page size APIs 2025-02-06 14:23:23 -08:00
Step std.Build.Step.Run: prefix relative path arguments with './' 2025-06-18 22: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: introduce ConfigHeader.getOutputDir, small refactor 2025-06-17 11:55:36 +01:00
Step.zig std.Build: Demote errors for exceeding max_rss to warnings. 2025-06-02 20:55:01 +02:00
Watch.zig std.Build.Watch: not supported on haiku 2025-06-05 13:45:47 +01:00