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>2013-11-07 03:19:01 +0400
committerJens Verwiebe <info@jensverwiebe.de>2013-11-07 03:19:01 +0400
commitec470d731e5a715fe10f7210bb06f996f141814c (patch)
treef830a78544363535fc7aa74554d3081799e2062e /SConstruct
parentf07ed3c27032b8f132a7ca8294df1a3b91946fcf (diff)
OSX/scons: for completeness, added WITH_BF_OPENMP switch
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct9
1 files changed, 5 insertions, 4 deletions
diff --git a/SConstruct b/SConstruct
index 3ffd3f42b32..c4079341df9 100644
--- a/SConstruct
+++ b/SConstruct
@@ -410,10 +410,11 @@ 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['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:
- env['WITH_BF_OPENMP'] = 0
+ 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:
+ env['WITH_BF_OPENMP'] = 0
env['PLATFORM_LINKFLAGS'] = env['PLATFORM_LINKFLAGS']+ARCH_FLAGS