| Summary: | CMake+GCC forces x86 FPU when it meant to force SSE. | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Ryan C. Gordon <icculus> |
| Component: | build | Assignee: | Ryan C. Gordon <icculus> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | HG 2.0 | ||
| Hardware: | x86 | ||
| OS: | All | ||
|
Description
Ryan C. Gordon
2017-01-23 06:18:58 UTC
Maybe so the generated binary is compatible with systems without SSE support? (In reply to Sam Lantinga from comment #1) > Maybe so the generated binary is compatible with systems without SSE support? I think it was a translation error when converting code from configure.in: if test x$enable_ssemath = xno; then if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes; then EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387" fi fi So in CMakeLists.txt, that "if(SSEMATH)" was probably supposed to be "if(NOT SSEMATH)" --ryan. I just fixed this with https://hg.libsdl.org/SDL/rev/7764aba2f211 --ryan. |