acl
acl copied to clipboard
Enable POPCNT instruction when targeting Win11
Win11 requires POPCNT being present and drivers require it as well: https://www.techpowerup.com/forums/threads/remove-popcnt-cpu-instruction-requirement.325261/
We need to check the Windows SDK version used during compilation and enable it as required: https://blog.yuo.be/2025/02/12/what-do-all-the-recent-ntddi-version-values-mean/
We also need to disable the ACL_POPCOUNT macro when we don't care (e.g. gcc/clang) as it causes compilation to fail (e.g. android under windows).