Closed chouquette closed 1 year ago
This should help with #266 and #308
A cleaner approach might be to replace the cmake variable DISABLE_SSE
which you probably should have set for a non-x86 architecture with an automatic detection of an x86 target.
A cleaner approach might be to replace the cmake variable
DISABLE_SSE
which you probably should have set for a non-x86 architecture with an automatic detection of an x86 target.
That also works for me. To clarify, do you mean to discard the changes from this PR and update the DISABLE_SSL
default value to something like "arch != x86" ? Or update that default value in addition to ensuring the check doesn't lead to a false positive?
I think we could remove the DISABLE_SSE
flag completely since this is tested at runtime anyway.
Even for testing-purposes it is possible to disable accelerations at runtime. Thus I don't see any need for manually setting this flag.
I'd argue that it's quite handy to be able to disable hardware accelerations, especially on some platforms such as wasm/nasm, but I can live with converting DISABLE_SSE
from an option to an internal variable
Sure, but when compiling to wasm
it should be deactivated automatically. We just replace the manual flag with an automatic detection.
Alternative implementation submitted: https://github.com/strukturag/libde265/pull/411
Merged PR #410 instead
When passing -msse to clang, it only issues a warning which causes a false positive for SSE detection. This will cause build failures later on if the targeted architecture isn't X86