Cycles / BVH:
authorThomas Dinges <blender@dingto.org>
Tue, 18 Jun 2013 10:05:47 +0000 (10:05 +0000)
committerThomas Dinges <blender@dingto.org>
Tue, 18 Jun 2013 10:05:47 +0000 (10:05 +0000)
* GCC needs -mssse3 compile flag too (4.7.2) to compile.

intern/cycles/CMakeLists.txt
intern/cycles/SConscript

index 226218ae512f4bcdd5aaa9f8c8c3e82731a55f88..9f067bede33b0aa4144167525e9b9f19d8a041b4 100644 (file)
@@ -18,7 +18,7 @@ if(WIN32 AND MSVC)
        set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /fp:fast -D_CRT_SECURE_NO_WARNINGS /EHsc")
 elseif(CMAKE_COMPILER_IS_GNUCC)
        set(CYCLES_SSE2_KERNEL_FLAGS "-ffast-math -msse -msse2 -mfpmath=sse")
-       set(CYCLES_SSE3_KERNEL_FLAGS "-ffast-math -msse -msse2 -msse3 -mfpmath=sse")
+       set(CYCLES_SSE3_KERNEL_FLAGS "-ffast-math -msse -msse2 -msse3 -mssse3 -mfpmath=sse")
        set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ffast-math")
 endif()
 
index a7a4bc22dea9904fc2e728b14e479d48666dfa1c..43f838157b9f2823a3bfcaece9c4210614b1689b 100644 (file)
@@ -86,7 +86,7 @@ if env['WITH_BF_RAYOPTIMIZATION']:
         sse3_cxxflags.append('-D_CRT_SECURE_NO_WARNINGS /fp:fast /EHsc'.split())
     else:
         sse2_cxxflags.append('-ffast-math -msse -msse2 -mfpmath=sse'.split())
-        sse3_cxxflags.append('-ffast-math -msse -msse2 -msse3 -mfpmath=sse'.split())
+        sse3_cxxflags.append('-ffast-math -msse -msse2 -msse3 -mssse3 -mfpmath=sse'.split())
     
     defs.append('WITH_OPTIMIZED_KERNEL')
     optim_defs = defs[:]