# Build system: Allow specifying Win32 resource include paths using LazyPath · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/ddde99bdfa5b2fa9b49c39a0f00a8c232a9576b6)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: ddde99bdfa5b2fa9b49c39a0f00a8c232a9576b6

Requested commit: ddde99bdfa5b2fa9b49c39a0f00a8c232a9576b6

Commit: ddde99bdfa5b2fa9b49c39a0f00a8c232a9576b6

Tree: 953639ad4c64f00dd7560227f999dfb055cc38be

Author: Ryan Liptak

Committer: Andrew Kelley

## Message

```
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

```

## Parents

- [f2110b0c0d225eba414ee235519d790c5c2922d7](https://git.cafe/gitcafe/zig/commit/f2110b0c0d225eba414ee235519d790c5c2922d7?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/ddde99bdfa5b2fa9b49c39a0f00a8c232a9576b6?format=markdown)
