mlugg f3c0555975
std.Build: introduce ConfigHeader.getOutputDir, small refactor
`std.Build.Step.ConfigHeader` emits a *directory* containing a config
header under a given sub path, but there's no good way to actually
access that directory as a `LazyPath` in the configure phase. This is
silly; it's perfectly valid to refer to that directory, perhaps to
explicitly pass as a "-I" flag to a different toolchain invoked via a
`Step.Run`. So now, instead of the `GeneratedFile` being the actual
*file*, it should be that *directory*, i.e. `cache/o/<digest>`. We can
then easily get the *file* if needed just by using `LazyPath.path` to go
"deeper", which there is a helper function for.

The legacy `getOutput` function is now a deprecated alias for
`getOutputFile`, and `getOutputDir` is introduced.

`std.Build.Module.IncludeDir.appendZigProcessFlags` needed a fix after
this change, so I took the opportunity to refactor it a little. I was
looking at this function while working on ziglang/translate-c yesterday
and realised it could be expressed much more simply -- particularly
after the `ConfigHeader` change here.

I had to update the test `standalone/cmakedefine/` -- it turns out this
test was well and truly reaching into build system internals, and doing
horrible not-really-allowed stuff like overriding the `makeFn` of a
`TopLevelStep`. To top it all off, the test forgot to set
`b.default_step` to its "test" step, so the test never even ran. I've
refactored it to follow accepted practices and to actually, like, work.
2025-06-17 11:55:36 +01:00
..
2024-12-19 17:10:03 -05:00
2025-06-05 13:45:52 +01:00
2025-06-15 22:15:06 +01:00
2025-06-13 21:23:41 -04:00
2025-06-15 14:15:18 -04:00
2025-06-16 13:22:19 +03:30
2025-02-05 13:58:15 +01:00
2025-06-16 13:22:19 +03:30
2024-08-22 08:44:08 +02:00
2025-02-06 14:23:23 -08:00
2025-02-22 14:32:48 -08:00
2024-08-07 00:48:32 -07:00
2025-05-24 10:52:56 +02:00
2024-07-31 16:57:42 -07:00
2025-06-15 14:15:18 -04:00
2025-06-16 13:22:19 +03:30
2024-08-29 23:43:52 +01:00
2025-06-12 13:55:41 +01:00
2025-06-16 13:22:19 +03:30
2025-06-16 13:22:19 +03:30
2025-02-06 14:23:23 -08:00
2025-02-03 09:14:37 +00:00