Closed jonesmz closed 5 months ago
@icculus, this might be part of the cpuinfo inline intrinsics cleanup we have on the TODO list.
Basically clang doesn't have a way to include support for intrinsics without allowing the compiler to generally use the instruction set, so even though we check to see if SSE3 is supported, clang doesn't know that and doesn't allow the instruction.
@jonesmz, in the meantime, you will probably have to add clang compiler architecture options to allow SSE if that works for your product, or edit SDL_cpuinfo.h to remove SSE capability.
Yeah, this is the same problem we're having with Intel's C++ compiler (which is also just clang afaik).
This is still meant to get reworked for SDL3, which I really want to branch off for soon.
Understood. Thank you for the advice.
I believe we have fixed this, between moving intrinsic headers to a separate include and adding the SDL_TARGETING
macro; plus I think we're building with clang-cl on GitHub Actions...?
This should be resolved for SDL3; please let us know if it isn't!
See github action run: https://github.com/jonesmz/osp-magnum/runs/8295514550
I'm trying to build my project with clang-cl like this
SDL is being configured like:
SDL2 is at tag
prerelease-2.23.1
, which I can't move past just yet due to another third party dependency (working on it...).