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
..
2025-09-19 17:38:40 -07:00
2025-08-25 16:15:17 +02:00
2025-09-17 21:43:23 -07:00
2025-09-03 01:48:46 -07:00
2025-09-19 12:09:48 +02:00
2025-08-30 00:48:50 -07:00
2024-12-19 17:10:03 -05:00
2025-07-07 22:43:51 -07:00
2025-09-05 11:26:38 -07:00
2025-09-18 22:39:33 -07:00
2025-08-11 15:52:49 -07:00
2025-09-06 19:23:27 -07:00
2025-09-08 18:18:27 -07:00
2025-09-18 18:56:18 -04:00
2025-09-18 12:42:24 +02:00
2025-09-03 21:46:01 -07:00
2025-04-13 02:20:32 -04:00
2025-09-15 10:45:35 +01:00
2025-09-17 21:43:23 -07:00
2025-09-09 22:07:44 -07:00
2025-09-19 05:02:22 +00:00
2025-09-18 22:39:33 -07:00
2025-09-17 19:54:15 -07:00
2025-08-29 17:14:26 -07:00
2025-09-18 12:42:24 +02:00
2025-04-23 19:28:28 -04:00
2025-07-11 08:17:43 +02:00
2025-03-08 14:25:28 -05:00
2025-09-18 22:39:33 -07:00
2025-07-11 08:17:43 +02:00
2025-09-19 09:27:25 -07:00
2025-08-25 18:03:08 +02:00
2025-08-11 13:32:12 -07:00
2025-08-30 00:48:50 -07:00
2025-08-31 12:49:18 -07:00
2025-08-25 16:15:17 +02:00
2025-08-28 18:30:57 -07:00
2025-07-01 23:03:15 +02:00
2025-08-11 15:52:49 -07:00
2025-08-29 17:14:26 -07:00
2025-08-29 17:14:26 -07:00
2025-09-17 21:43:23 -07:00
2025-08-29 17:14:26 -07:00
2025-07-31 22:10:11 -07:00
2025-09-17 20:05:23 -07:00
2025-09-07 20:22:38 -07:00
2025-08-26 09:39:09 +02:00
2025-04-03 15:57:35 -07:00
2024-08-22 08:44:08 +02:00
2025-06-06 23:42:14 -07:00
2025-09-04 01:16:23 +02:00
2025-07-31 22:10:22 +01:00
2025-09-19 05:02:22 +00:00
2025-09-19 05:02:22 +00:00
2025-05-21 13:01:21 +03:30
2025-09-11 00:18:37 -07:00
2025-07-31 22:10:11 -07:00
2025-08-20 18:21:32 +02:00
2025-08-17 14:42:57 +02:00
2025-08-29 17:14:26 -07:00
2025-08-29 17:14:26 -07:00
2025-08-29 17:14:26 -07:00
2025-09-18 22:39:33 -07:00
2025-08-29 17:14:26 -07:00
2025-08-30 06:36:41 +02:00
2025-09-18 10:08:38 +02:00
2025-09-19 05:02:22 +00:00
2025-08-11 13:32:12 -07:00
2025-09-15 10:45:35 +01:00
2024-08-27 00:44:35 +01:00
2025-09-19 05:02:22 +00:00
2025-08-29 17:14:26 -07:00
2025-08-25 16:15:17 +02:00
2025-09-19 05:02:22 +00:00
2025-08-11 15:52:49 -07:00
2025-02-01 19:02:39 +01:00
2025-08-29 17:14:26 -07:00
2025-08-29 17:14:26 -07:00
2025-02-03 17:07:28 -08:00
2024-08-28 08:39:59 +01:00
2025-08-29 17:14:26 -07:00
2025-09-19 04:01:08 +02:00
2025-04-03 14:55:04 -07:00
2024-09-23 13:03:06 -07:00
2025-08-25 16:15:17 +02:00
2024-06-20 23:22:39 +00:00
2025-09-10 14:28:13 -07:00
2025-07-22 09:41:44 -07:00
2025-09-18 12:42:24 +02:00
2025-08-29 17:14:26 -07:00
2025-09-09 22:06:20 -07:00
2025-07-12 17:18:53 +00:00
2025-08-11 15:52:49 -07:00
2025-08-28 18:30:57 -07:00
2025-08-31 12:49:18 -07:00
2025-08-31 12:49:18 -07:00
2025-07-16 10:27:39 -07:00
2025-01-15 15:11:36 -08:00
2025-08-31 12:49:18 -07:00
2025-08-29 17:14:26 -07:00
2025-08-15 23:35:16 +02:00