Skip to content

Commit b83f83c

Browse files
committed
Always ignore INCLUDE environment variable when compiling rc files
The INCLUDE variable being used during preprocessing was an accidental regression caused by ziglang#17412. Closes ziglang#17585.
1 parent cad5292 commit b83f83c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Compilation.zig

+4
Original file line numberDiff line numberDiff line change
@@ -4755,6 +4755,10 @@ fn updateWin32Resource(comp: *Compilation, win32_resource: *Win32Resource, win32
47554755
};
47564756
defer options.deinit();
47574757

4758+
// We never want to read the INCLUDE environment variable, so
4759+
// unconditionally set `ignore_include_env_var` to true
4760+
options.ignore_include_env_var = true;
4761+
47584762
var argv = std.ArrayList([]const u8).init(comp.gpa);
47594763
defer argv.deinit();
47604764

0 commit comments

Comments
 (0)