[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [61200] trunk/blender/SConstruct: OSX/ scons: remove never used MAC_PROC and minor cleanups

jens verwiebe info at jensverwiebe.de
Fri Nov 8 14:19:52 CET 2013


Revision: 61200
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=61200
Author:   jensverwiebe
Date:     2013-11-08 13:19:51 +0000 (Fri, 08 Nov 2013)
Log Message:
-----------
OSX/scons: remove never used MAC_PROC and minor cleanups

Modified Paths:
--------------
    trunk/blender/SConstruct

Modified: trunk/blender/SConstruct
===================================================================
--- trunk/blender/SConstruct	2013-11-08 11:39:59 UTC (rev 61199)
+++ trunk/blender/SConstruct	2013-11-08 13:19:51 UTC (rev 61200)
@@ -294,8 +294,6 @@
 
     import commands
     
-    cmd = 'uname -p'
-    MAC_PROC=commands.getoutput(cmd)
     cmd = 'sw_vers -productVersion'
     MAC_CUR_VER=cmd_res=commands.getoutput(cmd)
     cmd = 'xcodebuild -version'
@@ -335,6 +333,7 @@
 
     if env['XCODE_CUR_VER'] >= '4.3':  ## since version 4.3, XCode and developer dir are bundled ##
          env['MACOSX_SDK'] = XCODE_BUNDLE + '/Contents/Developer/Platforms/MacOSX.platform' +  env['MACOSX_SDK']
+
     print B.bc.OKGREEN + "Using OSX SDK :" + B.bc.ENDC + env['MACOSX_SDK']
 		
     if not env['WITH_OSX_STATICPYTHON'] == 1:
@@ -379,7 +378,7 @@
     if env['MACOSX_ARCHITECTURE'] == 'x86_64':
         env['REL_CCFLAGS'] = env['REL_CCFLAGS']+['-mssse3']
 
-    if env['XCODE_CUR_VER'] >= '5' and not (env['CXX'][:-2].endswith('4.6') or env['CXX'][:-2].endswith('4.8')):
+    if env['XCODE_CUR_VER'] >= '5' and not env['CC'].split('/')[len(env['CC'].split('/'))-1][4:] >= '4.6.1':
         env['CCFLAGS'].append('-ftemplate-depth=1024') # only valid for clang bundled with xcode 5
 
     # for now, Mac builders must download and install the 3DxWare 10 Beta 4 driver framework from 3Dconnexion




More information about the Bf-blender-cvs mailing list