zig/lib/std/Build
Justus Klausecker be571f32c3 std.Build.Step.Run: Enable passing (generated) file content as args
Adds `addFileContentArg` and `addPrefixedFileContentArg` to pass the content
of a file with a lazy path as an argument to a `std.Build.Step.Run`.
This enables replicating shell `$()` / cmake `execute_process` with `OUTPUT_VARIABLE`
as an input to another `execute_process` in conjuction with `captureStdOut`/`captureStdErr`.

To also be able to replicate `$()` automatically trimming trailing newlines and cmake
`OUTPUT_STRIP_TRAILING_WHITESPACE`, this patch adds an `options` arg to those functions
which allows specifying the desired handling of surrounding whitespace.

The `options` arg also allows to specify a custom `basename` for the output. e.g.
to add a file extension (concrete use case: Zig `@import()` requires files to have a
`.zig`/`.zon` extension to recognize them as valid source files).
2025-09-19 17:38:40 -07:00
..
Cache std.fmt: delete deprecated APIs 2025-08-31 12:49:18 -07:00
Step std.Build.Step.Run: Enable passing (generated) file content as args 2025-09-19 17:38:40 -07:00
Watch std.Build.Watch: add macOS implementation based on FSEventStream 2025-08-02 05:13:13 +01:00
abi.zig greatly improve capabilities of the fuzzer 2025-09-18 18:56:10 -04:00
Cache.zig rework std.Io.Writer.Allocating to support runtime-known alignment 2025-08-30 00:48:50 -07:00
Fuzz.zig greatly improve capabilities of the fuzzer 2025-09-18 18:56:10 -04:00
Module.zig std.ArrayList: make unmanaged the default 2025-08-11 15:52:49 -07:00
Step.zig std.Build: improve error for peak RSS exceeding declared value 2025-08-15 23:03:16 +01:00
Watch.zig Merge pull request #24661 from alichraghi/spv4 2025-08-07 20:55:50 -07:00
WebServer.zig rework std.Io.Writer.Allocating to support runtime-known alignment 2025-08-30 00:48:50 -07:00