Skip to content
Snippets Groups Projects
Commit ec470d73 authored by Jens Verwiebe's avatar Jens Verwiebe
Browse files

OSX/scons: for completeness, added WITH_BF_OPENMP switch

parent f07ed3c2
No related branches found
No related tags found
No related merge requests found
......@@ -410,6 +410,7 @@ if env['OURPLATFORM']=='darwin':
#Defaults openMP to true if compiler handles it ( only gcc 4.6.1 and newer )
# if your compiler does not have accurate suffix you may have to enable it by hand !
if env['WITH_BF_OPENMP'] == 1:
if env['CC'][:-2].endswith('4.6') or env['CC'][:-2].endswith('4.8'):
env['WITH_BF_OPENMP'] = 1 # multithreading for fluids, cloth, sculpt and smoke
else:
......
......@@ -211,6 +211,9 @@ BF_CYCLES_CUDA_BINARIES_ARCH = ['sm_20', 'sm_21', 'sm_30', 'sm_35']
#Freestyle
WITH_BF_FREESTYLE = True
#OpenMP ( will be checked for compiler support and turned off eventually )
WITH_BF_OPENMP = True
#Ray trace optimization
WITH_BF_RAYOPTIMIZATION = True
BF_RAYOPTIMIZATION_SSE_FLAGS = []
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment