x86 -> windows cross compiler fails ghc-toolchain linting
Using haskell.nix to build master leads to the following validation failure:
3c3
< , tgtVendor = Just "unknown"
---
> , tgtVendor = Just "w64"
20c20
< { ccLinkProgram = Program { prgPath = "/nix/store/lm6aml2xlhscl44qpzi22k3k7m175xrd-x86_64-w64-mingw32-stage-final-gcc-wrapper-12.3.0/bin/x86_64-w64-mingw32-cc" , prgFlags = ["-fstack-check"] }
---
> { ccLinkProgram = Program { prgPath = "/nix/store/lm6aml2xlhscl44qpzi22k3k7m175xrd-x86_64-w64-mingw32-stage-final-gcc-wrapper-12.3.0/bin/x86_64-w64-mingw32-cc" , prgFlags = ["-fuse-ld=gold","-fstack-check"] }
38c38
< , tgtWindres = Nothing
---
> , tgtWindres = Just Program { prgPath = "/nix/store/lm6aml2xlhscl44qpzi22k3k7m175xrd-x86_64-w64-mingw32-stage-final-gcc-wrapper-12.3.0/bin/x86_64-w64-mingw32-windres" , prgFlags = [] }
Related to #23841 (closed)
Reproduce with
nix build github:input-output-hk/haskell.nix/3de92cea6b12b2bc39554f7f640b1c43d8fc5678#hydraJobs.x86_64-linux.unstable.ghc9920230809.mingwW64.ghc