Lower optimization settings for MinGW-w64. Full optimization causes artifacts with...
authorAntony Riakiotakis <kalast@gmail.com>
Tue, 24 Apr 2012 17:20:51 +0000 (17:20 +0000)
committerAntony Riakiotakis <kalast@gmail.com>
Tue, 24 Apr 2012 17:20:51 +0000 (17:20 +0000)
CMakeLists.txt
build_files/scons/config/win64-mingw-config.py

index a2926182c5a7ddf41c4b0e86272bcb31d15bd15b..cc3636239dccf88fd89541cde575a8ce8e181770 100644 (file)
@@ -1008,7 +1008,7 @@ elseif(WIN32)
 
                if(WITH_MINGW64)
                        #Yes, the point for MinGW64 is moar optimization by default :)
-                       set(PLATFORM_CFLAGS "${PLATFORM_CFLAGS} -mmmx -msse -msse2 -O3")
+                       set(PLATFORM_CFLAGS "${PLATFORM_CFLAGS} -mmmx -msse -msse2 -ftree-vectorize")
                        set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fpermissive")
                        set(PLATFORM_LINKLIBS "${PLATFORM_LINKLIBS} -lpthread")
                        
index 0379ea480883924c077d057acb2efea746c447c9..055b0c7b9fdbd5b5dc479d6c54ed4afa76e4b3ca 100644 (file)
@@ -179,9 +179,9 @@ CCFLAGS = [ '-pipe', '-funsigned-char', '-fno-strict-aliasing' ]
 CXXFLAGS = [ '-fpermissive' ]
 
 CPPFLAGS = ['-DWIN32', '-DMS_WIN64', '-DFREE_WINDOWS', '-DFREE_WINDOWS64', '-D_LARGEFILE_SOURCE', '-D_FILE_OFFSET_BITS=64', '-D_LARGEFILE64_SOURCE', '-DBOOST_ALL_NO_LIB', '-DBOOST_THREAD_USE_LIB', '-DGLEW_STATIC', '-D_SSIZE_T_']
-REL_CFLAGS = ['-O3', '-mmmx', '-msse', '-msse2']
-REL_CXXFLAGS = ['-O3', '-mmmx', '-msse', '-msse2']
-REL_CCFLAGS = ['-DNDEBUG',  '-O3', '-mmmx', '-msse', '-msse2']
+REL_CFLAGS = []
+REL_CXXFLAGS = []
+REL_CCFLAGS = ['-DNDEBUG', '-O2', '-ftree-vectorize', '-mmmx', '-msse', '-msse2']
 
 C_WARN = ['-Wno-char-subscripts', '-Wdeclaration-after-statement', '-Wstrict-prototypes']