summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2019-10-21 08:27:45 +0200
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-10-21 08:27:45 +0200
commite5488f14db386a54fbfae275655241d2a6e80800 (patch)
treefefafc54c2a6529de24c28c87fb91ab3884cc3cb
parent9fdff854ebf1fe1a118061d57fd0a2d6c5c7dfd7 (diff)
parent18a2244f5b1e28c2d38dd95bf93d02cef0173178 (diff)
downloadUXP-e5488f14db386a54fbfae275655241d2a6e80800.tar
UXP-e5488f14db386a54fbfae275655241d2a6e80800.tar.gz
UXP-e5488f14db386a54fbfae275655241d2a6e80800.tar.lz
UXP-e5488f14db386a54fbfae275655241d2a6e80800.tar.xz
UXP-e5488f14db386a54fbfae275655241d2a6e80800.zip
Merge commit '18a2244f5b1e28c2d38dd95bf93d02cef0173178' into release
-rw-r--r--build/autoconf/compiler-opts.m49
1 files changed, 7 insertions, 2 deletions
diff --git a/build/autoconf/compiler-opts.m4 b/build/autoconf/compiler-opts.m4
index 82d0b43fc..77c2e85b5 100644
--- a/build/autoconf/compiler-opts.m4
+++ b/build/autoconf/compiler-opts.m4
@@ -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" -o "$CPU_ARCH" = "x86_64"; then
+ CFLAGS="$CFLAGS -msse2 -mfpmath=sse"
+ CXXFLAGS="$CXXFLAGS -msse2 -mfpmath=sse"
+ fi
if test -z "$CLANG_CC"; then
case "$CC_VERSION" in