# mingw.zig: fix logic to add crt sources · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/f28868e8fd4028cad29bd2de8c0aa1c1713c69dd)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: f28868e8fd4028cad29bd2de8c0aa1c1713c69dd

Requested commit: f28868e8fd4028cad29bd2de8c0aa1c1713c69dd

Commit: f28868e8fd4028cad29bd2de8c0aa1c1713c69dd

Tree: 75a4e5013fa1e43749dc3b81ab1abbc743f68528

Author: Jonathan Marler

Committer: Veikka Tuominen

## Message

```
mingw.zig: fix logic to add crt sources

The current version of code uses isARM to check if we are compiling to any arm target then checks the target bit width to either add the 32-bit sources or 64-bit source.  However, isARM only returns true for 32-bit targets, and isAARCH64 is for the 64-bit targets.

I also replaced the unreachable with a @panic when we receive an unsupported arch because this code is reachable and should turn into an error.

```

## Parents

- [27e321628587fd82b431dbbed1e6ba99e6df24a6](https://git.cafe/gitcafe/zig/commit/27e321628587fd82b431dbbed1e6ba99e6df24a6?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/f28868e8fd4028cad29bd2de8c0aa1c1713c69dd?format=markdown)
