[Bug]: fails to build on aarch64 host
- Dominant language
- C++
- Stars
- 157
- Forks
- 104
- PR merge metrics
- No merged PRs in 30d
Description
### Which component impacted?
Build
### Is it regression? Good in old configuration?
No, this issue exist a long time
### What happened?
[log.txt](https://github.com/oneapi-src/oneVPL-intel-gpu/files/13229143/log.txt)
The build stops due to adding x86 specific build flags which don't exist for aarch64. Specifically the first flag to fail is `-msse4.2`, but there are also avx2 and ssse3 flags that must not be enabled for this architecture:
https://github.com/oneapi-src/oneVPL-intel-gpu/blob/d2b457be2e531f5e358ad427252f2c0ac761a1e5/builder/FindGlobals.cmake#L321
The cmake build scripts should not only distinguish between Windows and Linux to determine build flags, but also target architecture
Thanks!
### What's the usage scenario when you are seeing the problem?
Others
### What impacted?
cannot build from source
### Debug Information
_No response_
### Do you want to contribute a patch to fix the issue?
None
Contributor guide
Assessment
This issue has not been assessed yet.