Martin Storsjö (@mstorsjo) commented about dlls/ntdll/unix/system.c:
+ case 2: type = AT_HWCAP2; break; default: return FALSE; } return !!(getauxval( type ) & hwcap_bit); }
#define HAS_FEATURE(hwcap, hwcap_bit, ...) has_capability( hwcap, hwcap_bit ) +#elif defined(__APPLE__) +static BOOLEAN has_feature( const char *feature ) +{ + char buf[200]; + int val; + size_t size = sizeof(val); + + snprintf( buf, sizeof(buf), "hw.optional.arm.%s", feature ); + if (!sysctlbyname( buf, &val, &size, NULL, 0 )) As this commit also expands the feature detection to macOS, it would be nice to mention that in the commit message of this commit - not only in the MR description, as this commit isn’t a pure refactoring as it otherwise seems.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/11267#note_144342