OSX/Scons/clang: more restrict the ftemplate fix to clang bundled with xcode 5 only
authorJens Verwiebe <info@jensverwiebe.de>
Tue, 10 Sep 2013 12:55:36 +0000 (12:55 +0000)
committerJens Verwiebe <info@jensverwiebe.de>
Tue, 10 Sep 2013 12:55:36 +0000 (12:55 +0000)
SConstruct

index 550cc318a124b5ea6cb434512dd3807a555dd22e..da0cf63a1094aff02788750d31bc2ccd245da191 100644 (file)
@@ -295,8 +295,8 @@ if env['OURPLATFORM']=='darwin':
     else:
         print B.bc.OKGREEN + "Found recommended sdk :" + B.bc.ENDC + " using MacOSX10.5.sdk"
                
-    if env['CXX'].startswith('clang'):
-        env['CCFLAGS'].append('-ftemplate-depth=1024') # would break other gcc or llvm-gcc
+    if env['CXX'].startswith('clang') and env['XCODE_CUR_VER'] >= '5':
+        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
     # necessary header file lives here when installed: