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:
authorJens Verwiebe <info@jensverwiebe.de>2014-02-09 21:03:13 +0400
committerJens Verwiebe <info@jensverwiebe.de>2014-02-09 21:03:13 +0400
commita84bcea070a81b9729ada289bd15e1d86881aa70 (patch)
tree7e84b42016c096eac7ca423d1930b4c14c858856 /source/blender/ikplugin
parent685c7a2272b95b6514f4fd36b2c72fe6ed5f1a48 (diff)
OSX/scons: allow for compiling with clang-openmp-3.4
See: http://clang-omp.github.io + fix a longstanding bad include in darwin-config
Diffstat (limited to 'source/blender/ikplugin')
-rw-r--r--source/blender/ikplugin/SConscript5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/ikplugin/SConscript b/source/blender/ikplugin/SConscript
index 4a4cb4f2cbd..ec19b9a250a 100644
--- a/source/blender/ikplugin/SConscript
+++ b/source/blender/ikplugin/SConscript
@@ -46,4 +46,7 @@ defs = [
'WITH_IK_SOLVER',
]
-env.BlenderLib('bf_ikplugin', sources, incs, defs, libtype=['core', 'player'], priority=[180, 190])
+if env['OURPLATFORM']=='darwin' and env['C_COMPILER_ID'] == 'clang' and env['CCVERSION'] >= '3.4': # workaround for friend declaration specifies a default argument expression, not allowed anymore
+ env.BlenderLib('bf_ikplugin', sources, incs, defs, libtype=['core', 'player'], priority=[180, 190], cc_compilerchange='/usr/bin/gcc', cxx_compilerchange='/usr/bin/g++')
+else:
+ env.BlenderLib('bf_ikplugin', sources, incs, defs, libtype=['core', 'player'], priority=[180, 190])