Commit: ac0cdec90f5a9581e2e45e29ef4d6aae47e2ac1b
Author: Jens Verwiebe
Date:   Mon Mar 10 18:09:42 2014 +0100
https://developer.blender.org/rBac0cdec90f5a9581e2e45e29ef4d6aae47e2ac1b

OSX/clang3.4: tentative fix for T38746, strange bullet behaviour

===================================================================

M       extern/bullet2/src/SConscript

===================================================================

diff --git a/extern/bullet2/src/SConscript b/extern/bullet2/src/SConscript
index ff2e86a..f0c13da 100644
--- a/extern/bullet2/src/SConscript
+++ b/extern/bullet2/src/SConscript
@@ -37,7 +37,7 @@ bullet2_src += env.Glob("BulletSoftBody/*.cpp")
 
 incs = '. BulletCollision BulletDynamics LinearMath BulletSoftBody'
 
-if sys.platform=='darwin' and env['CC'][:-2].endswith('4.6'): # workaround for 
an gcc-4.6 compiler bug
+if sys.platform=='darwin' and (env['C_COMPILER_ID'] == 'gcc' and 
env['CCVERSION'] <= '4.6.1' or env['C_COMPILER_ID'] == 'clang' and 
env['CCVERSION'] >= '3.4'): # workaround for compiler bugs
        env.BlenderLib ( libname = 'extern_bullet2', sources=bullet2_src, 
includes=Split(incs), defines=Split(defs), libtype=['extern','player'], 
priority=[20,137], compileflags=cflags, cc_compilerchange='/usr/bin/gcc', 
cxx_compilerchange='/usr/bin/g++' )
 else:
        env.BlenderLib ( libname = 'extern_bullet2', sources=bullet2_src, 
includes=Split(incs), defines=Split(defs), libtype=['extern','player'], 
priority=[20,137], compileflags=cflags )

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to