mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-09 17:31:47 +09:00
Don't assume Intel architecture for compiler optimizations on Linux/gcc.
This only adds SSE2 flags when the CPU architecture is correct for it. Resolves #1226
This commit is contained in:
parent
c2fafd67b0
commit
3686403436
1 changed files with 7 additions and 2 deletions
|
|
@ -176,8 +176,13 @@ if test "$GNU_CC"; then
|
|||
CFLAGS="$CFLAGS -ffunction-sections -fdata-sections"
|
||||
CXXFLAGS="$CXXFLAGS -ffunction-sections -fdata-sections"
|
||||
fi
|
||||
CFLAGS="$CFLAGS -fno-math-errno -msse2 -mfpmath=sse"
|
||||
CXXFLAGS="$CXXFLAGS -fno-exceptions -fno-math-errno -msse2 -mfpmath=sse"
|
||||
CFLAGS="$CFLAGS -fno-math-errno"
|
||||
CXXFLAGS="$CXXFLAGS -fno-exceptions -fno-math-errno"
|
||||
|
||||
if test "$CPU_ARCH" = x86; then
|
||||
CFLAGS="$CFLAGS -msse2 -mfpmath=sse"
|
||||
CXXFLAGS="$CXXFLAGS -msse2 -mfpmath=sse"
|
||||
fi
|
||||
|
||||
if test -z "$CLANG_CC"; then
|
||||
case "$CC_VERSION" in
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue