From 222dc9cf132c6cc2f4c3ca6c14fe5dffb5737d7d Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Wed, 10 Mar 2010 18:05:58 +0000 Subject: [PATCH] OSX compile fix, for Scons, provided by Jens. Error caused by openmp weirdness in gcc for osx. --- source/blender/blenlib/SConscript | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/blender/blenlib/SConscript b/source/blender/blenlib/SConscript index 090094a834d..78aecf9936b 100644 --- a/source/blender/blenlib/SConscript +++ b/source/blender/blenlib/SConscript @@ -20,4 +20,8 @@ if env['OURPLATFORM'] == 'linuxcross': if env['WITH_BF_OPENMP']: incs += ' ' + env['BF_OPENMP_INC'] +if env['OURPLATFORM'] == 'darwin': + if env['WITH_BF_OPENMP']: + env.Append(CFLAGS=['-DPARALLEL=1']) + env.BlenderLib ( 'bf_blenlib', sources, Split(incs), Split(defs), libtype=['core','player'], priority = [363,170], compileflags =cflags )