Turn OpenMP off for MinGW64. I thought it behaved correctly in new compiler builds...
authorAntony Riakiotakis <kalast@gmail.com>
Wed, 22 Aug 2012 00:06:09 +0000 (00:06 +0000)
committerAntony Riakiotakis <kalast@gmail.com>
Wed, 22 Aug 2012 00:06:09 +0000 (00:06 +0000)
This should make MinGW64 builds quite stable again :)

CMakeLists.txt
build_files/scons/config/win64-mingw-config.py

index 338135f498758cc4ebeb491aaab0ca8297c42d31..6bb5d8af627c0221794c3503b53bfcded4af24ae 100644 (file)
@@ -1043,6 +1043,8 @@ elseif(WIN32)
                        set(PLATFORM_LINKLIBS "${PLATFORM_LINKLIBS} -lpthread")
                        
                        add_definitions(-DFREE_WINDOWS64 -DMS_WIN64)
+                       #Turn off OpenMP since it causes crashes on render for subsurfed/multiresolution meshes
+                       set(WITH_OPENMP OFF)
                endif()
 
                add_definitions(-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE)
index 272864392974f7746693404aacf0818ebe581e22..ffd37065e3553d0c5097dd29bbf151be8bc62210 100644 (file)
@@ -170,7 +170,7 @@ WITH_BF_RAYOPTIMIZATION = True
 BF_RAYOPTIMIZATION_SSE_FLAGS = ['-mmmx', '-msse', '-msse2']
 
 #May produce errors with unsupported MinGW-w64 builds
-WITH_BF_OPENMP = True
+WITH_BF_OPENMP = False
 
 ##
 CC = 'gcc'