mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-07 14:24:43 +00:00
Previously, resinator would use the host arch as the target arch when looking for windows-gnu include directories. However, Zig only thinks it can provide a libc for targets specified in the `std.zig.target.available_libcs` array, which only includes a few for windows-gnu. Therefore, when cross-compiling from a host architecture that doesn't have a windows-gnu target in the available_libcs list, resinator would fail to detect the MinGW include directories. Now, the custom option `/:target` is passed to `zig rc` which is intended for the COFF object file target, but can be re-used for the include directory target as well. For the include directory target, resinator will convert the MachineType to the relevant arch, or fail if there is no equivalent arch/no support for detecting the includes for the MachineType (currently 64-bit Itanium and EBC). Fixes the `windows_resources` standalone test failing when the host is, for example, `riscv64-linux`. |
||
|---|---|---|
| .. | ||
| ani.zig | ||
| ast.zig | ||
| bmp.zig | ||
| cli.zig | ||
| code_pages.zig | ||
| comments.zig | ||
| compile.zig | ||
| cvtres.zig | ||
| disjoint_code_page.zig | ||
| errors.zig | ||
| ico.zig | ||
| lang.zig | ||
| lex.zig | ||
| literals.zig | ||
| main.zig | ||
| parse.zig | ||
| preprocess.zig | ||
| rc.zig | ||
| res.zig | ||
| source_mapping.zig | ||
| utils.zig | ||
| windows1252.zig | ||