zig/lib/std/Build
Ryan Liptak ddde99bdfa Build system: Allow specifying Win32 resource include paths using LazyPath
Adds an `include_paths` field to RcSourceFile that takes a slice of LazyPaths. The paths are resolved and subsequently appended to the -rcflags as `/I <resolved path>`.

This fixes an accidental regression from https://github.com/ziglang/zig/pull/19174. Before that PR, all Win32 resource compilation would inherit the CC flags (via `addCCArgs`), which included things like include directories. After that PR, though, that is no longer the case.

However, this commit intentionally does not restore the previous behavior (inheriting the C include paths). Instead, each .rc file will need to have its include paths specified directly and the include paths only apply to one particular resource script. This allows more fine-grained control and has less potentially surprising behavior (at the cost of some convenience).

Closes #19605
2024-05-22 06:58:09 -07:00
..
Cache move Package.Path to std.Build.Cache.Path 2024-03-21 16:16:47 -07:00
Step Build system: Allow specifying Win32 resource include paths using LazyPath 2024-05-22 06:58:09 -07:00
Cache.zig Build.Cache: fix UAF during unhit 2024-03-24 18:28:16 +00:00
Module.zig Build system: Allow specifying Win32 resource include paths using LazyPath 2024-05-22 06:58:09 -07:00
Step.zig Update uses of @fieldParentPtr to use RLS 2024-03-30 20:50:48 -04:00