From e183b1d54f6f2b9238df24ec7fb09eabddca50de Mon Sep 17 00:00:00 2001 From: falkTX Date: Tue, 3 Jul 2018 10:20:38 +0200 Subject: [PATCH] Less optimizations for no-sse build --- data/windows/build-deps.sh | 2 +- data/windows/build-win.sh | 1 + source/Makefile.mk | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/data/windows/build-deps.sh b/data/windows/build-deps.sh index 9f6f6c915..0c8f3c430 100755 --- a/data/windows/build-deps.sh +++ b/data/windows/build-deps.sh @@ -122,7 +122,7 @@ export PATH=/opt/mingw${ARCH}/${MINGW_PREFIX}/bin:/opt/mingw${ARCH}/bin:${PATH} if [ -z "${NOSSE}" ]; then export CFLAGS="-O3 -mtune=generic -msse -msse2 -mfpmath=sse -fvisibility=hidden -fdata-sections -ffunction-sections" else -export CFLAGS="-O3 -mtune=generic -fvisibility=hidden -fdata-sections -ffunction-sections" +export CFLAGS="-O2 -fvisibility=hidden -fdata-sections -ffunction-sections" fi export CFLAGS="${CFLAGS} -DNDEBUG -DPTW32_STATIC_LIB -DFLUIDSYNTH_NOT_A_DLL -I${PREFIX}/include -I/opt/mingw${ARCH}/include" diff --git a/data/windows/build-win.sh b/data/windows/build-win.sh index e7cf2b7fa..d4c9df16d 100755 --- a/data/windows/build-win.sh +++ b/data/windows/build-win.sh @@ -13,6 +13,7 @@ fi if [ x"${ARCH}" = x"32nosse" ]; then ARCH="32" + MAKE_ARGS="NOOPT=true" fi # --------------------------------------------------------------------------------------------------------------------- diff --git a/source/Makefile.mk b/source/Makefile.mk index 6533f6836..d24e8c13a 100644 --- a/source/Makefile.mk +++ b/source/Makefile.mk @@ -108,7 +108,7 @@ endif ifeq ($(NOOPT),true) # No CPU-specific optimization flags -BASE_OPTS = -O3 -ffast-math -fdata-sections -ffunction-sections +BASE_OPTS = -O2 -ffast-math -fdata-sections -ffunction-sections endif ifneq ($(WIN32),true)