zig/lib/compiler
Ryan Liptak 09f4e2d9d1 resinator: Fix include directory detection when cross-compiling from certain host archs
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`.
2025-06-28 19:52:18 -07:00
..
aro remove spirv cpu arch 2025-06-23 06:03:03 +02:00
aro_translate_c translate-c: fix function prototype decalared inside a function 2025-04-02 20:07:41 +00:00
reduce std.zig.Ast: store lbrace and rbrace token in data of .error_set_decl 2025-03-07 22:22:01 +01:00
resinator resinator: Fix include directory detection when cross-compiling from certain host archs 2025-06-28 19:52:18 -07:00
aro_translate_c.zig aro_translate_c: Fix an assertion in buildArgsHash(). 2025-05-29 16:48:28 +02:00
build_runner.zig build runner: disable fuzz in single-threaded builds 2025-06-05 13:45:52 +01:00
libc.zig fix zig libc FTBFS 2025-06-25 05:17:46 -07:00
objcopy.zig std: eradicate u29 and embrace std.mem.Alignment 2025-04-13 02:20:32 -04:00
reduce.zig reduce: Fix build due to std.mem.Alignment changes. 2025-05-15 03:13:41 +02:00
std-docs.zig Replace deprecated default initializations with decl literals 2024-09-12 16:01:23 +01:00
test_runner.zig compiler: Scaffold stage2_powerpc backend. 2025-05-20 10:23:16 +02:00