0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00
zig/lib
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`.
History 2025-06-28 19:52:18 -07:00
..
c libc: implement common abs for various integer sizes (#23893) 2025-05-21 00:57:38 +02:00
compiler resinator: Fix include directory detection when cross-compiling from certain host archs 2025-06-28 19:52:18 -07:00
compiler_rt remove spirv cpu arch 2025-06-23 06:03:03 +02:00
docs chore(std.mem): Rename trimLeft and trimRight 2025-04-27 18:03:59 +09:00
fuzzer/web Fix compile error in Fuzzer web-ui (#23605) 2025-04-19 23:10:51 +02:00
include zig cc: Update intrinsic headers to Clang 20. 2025-04-04 06:08:09 +02:00
init zig init: simplify templating logic (#24170) 2025-06-13 22:31:29 +00:00
libc add glibc versioning for a number of headers (#24237) 2025-06-24 16:14:00 +00:00
libcxx libcxx: Fix locale-related compilation errors on NetBSD. 2025-06-06 11:22:20 +02:00
libcxxabi libcxxabi: Update to Clang 20. 2025-04-04 06:08:09 +02:00
libtsan libtsan: Backport llvm/llvm-project#120036. 2025-05-12 16:24:59 +02:00
libunwind libunwind: Update to LLVM 20. 2025-04-04 06:08:09 +02:00
std c.darwin: define MSG for macos (#24224) 2025-06-24 15:07:06 +02:00
c.zig libc: implement common abs for various integer sizes (#23893) 2025-05-21 00:57:38 +02:00
compiler_rt.zig compiler-rt: Export _fltused for UEFI. 2025-06-16 13:46:23 +02:00
fuzzer.zig use correcct symbol for the end of pcguard section 2025-04-30 00:04:22 +02:00
ubsan_rt.zig compiler: Scaffold stage2_powerpc backend. 2025-05-20 10:23:16 +02:00
zig.h x86_64: add support for pie executables 2025-06-06 23:42:14 -07:00