mirror of
https://github.com/love2d/love.git
synced 2026-08-17 11:00:31 +02:00
Make stb_image only use SSE2 on x86_64, or when an override has been set (fixes #1173)
Turns out, this is a gcc bug: detecting sse2 support cannot be done in shared libraries. For now we'll assume 32-bit x86 builds are intended to also run on devices without SSE2 (how old!). In the future we might decide we only support machines that support SSE2, if we secretly don't already.
This commit is contained in:
@@ -36,6 +36,12 @@ AS_VAR_IF([enable_osx], [no], [], #else
|
||||
AC_SUBST([LDFLAGS], ["${LDFLAGS} -framework CoreFoundation -framework Cocoa"])
|
||||
AC_SUBST([CPPFLAGS], ["${CPPFLAGS} -I../platform/macosx"]))
|
||||
|
||||
# stb_image sse2 override (https://github.com/nothings/stb/issues/280)
|
||||
AC_ARG_ENABLE([stbi-sse2-override],
|
||||
AC_HELP_STRING([--enable-stbi-sse2-override], [Force stb_image SSE2 support]), [], [enable_stbi_sse2_override=no])
|
||||
AS_VAR_IF([enable_stbi_sse2_override], [no], [], #else
|
||||
AC_SUBST([CPPFLAGS], ["${CPPFLAGS} -DLOVE_STBI_SSE2_OVERRIDE"]))
|
||||
|
||||
# --with-lua and --with-luaversion
|
||||
AC_ARG_WITH([lua], [AS_HELP_STRING([--with-lua], [Select the lua implementation])],
|
||||
[], [with_lua=luajit])
|
||||
|
||||
Reference in New Issue
Block a user