Use sysconfig.get_platform for machine detection
This should function correctly when cross compiling unlike platform.machine.
## Description
Uses sysconfig to detect target architecture correctly.
---
## Related Issue(s)
Closes or relates to #1834
---
## Checklist
- [x] I have referenced relevant issue numbers above
- [x] I have performed a self-review of my code and it follows
the style guidelines of this project
- [ ] I have added new or used existing tests that prove my fix
is effective or that my feature works
- [ ] I have added necessary documentation (if appropriate) and
updated the changelog
- [x] I have added an AI assistance disclosure file (required!)
in this PR
合并状态:未合并 关闭于 2026-06-16 8 条评论