Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Plisson <damien.plisson@yahoo.fr>2010-02-22 13:29:49 +0300
committerDamien Plisson <damien.plisson@yahoo.fr>2010-02-22 13:29:49 +0300
commitdd03793f4edd455c09a1a2273e5e991dd3bd702b (patch)
treedd46108cef522d0b6faa93de6490af111af3d073 /source/blender/editors/render/SConscript
parentb65a983d391edf4c2ee2fcf9c80f4ff074bc6b59 (diff)
OSX : Bugfix [#21293] add OpenMP apple gcc bug workaround for render preview
All openMP calls from a background thread need to have this thread var init workaround
Diffstat (limited to 'source/blender/editors/render/SConscript')
-rw-r--r--source/blender/editors/render/SConscript4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/editors/render/SConscript b/source/blender/editors/render/SConscript
index 575f988544c..2b9737557cd 100644
--- a/source/blender/editors/render/SConscript
+++ b/source/blender/editors/render/SConscript
@@ -24,4 +24,8 @@ if env['WITH_BF_QUICKTIME']:
if env['USE_QTKIT']:
env.Append(CFLAGS=['-DUSE_QTKIT'])
+if env['OURPLATFORM'] == 'darwin':
+ if env['WITH_BF_OPENMP']:
+ env.Append(CFLAGS=['-DPARALLEL=1'])
+
env.BlenderLib ( 'bf_editors_render', sources, Split(incs), [], libtype=['core'], priority=[45])