# std.Target: Replace isARM\(\) with isArmOrThumb\(\) and rename it to isArm\(\)\. · gitcafe/zig

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

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

Visibility: public

Requested revision: c9e67e71c146d9a9c217d3f47e75258a1ffeedd9

Requested commit: c9e67e71c146d9a9c217d3f47e75258a1ffeedd9

Commit: c9e67e71c146d9a9c217d3f47e75258a1ffeedd9

Tree: 4c39477d16c9dc77dd53a254d11d601025fb3919

Author: Alex Rønne Petersen

Committer: Alex Rønne Petersen

## Message

```
std.Target: Replace isARM() with isArmOrThumb() and rename it to isArm().

The old isARM() function was a portability trap. With the name it had, it seemed
like the obviously correct function to use, but it didn't include Thumb. In the
vast majority of cases where someone wants to ask "is the target Arm?", Thumb
*should* be included.

There are exactly 3 cases in the codebase where we do actually need to exclude
Thumb, although one of those is in Aro and mirrors a check in Clang that is
itself likely a bug. These rare cases can just add an extra isThumb() check.

```

## Parents

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

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