mirror of
https://github.com/ziglang/zig.git
synced 2024-11-26 23:22:44 +00:00
c9e67e71c1
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. |
||
---|---|---|
.. | ||
cfuncs.c | ||
main.zig |