Tell what platform and its bitness in BUILD_PLATFORM
authorNathan Letwory <nathan@letworyinteractive.com>
Sun, 29 Aug 2010 19:44:50 +0000 (19:44 +0000)
committerNathan Letwory <nathan@letworyinteractive.com>
Sun, 29 Aug 2010 19:44:50 +0000 (19:44 +0000)
build_files/scons/tools/Blender.py

index acee9522003c303078636694a492b5d17d68e005..ab0e010fbcee155eb39e98437bbc2e00fb3c1fcd 100644 (file)
@@ -23,6 +23,7 @@ import sys
 import zipfile
 import shutil
 import cStringIO
+import platform
 
 from SCons.Script.SConscript import SConsEnvironment
 import SCons.Action
@@ -284,7 +285,7 @@ def buildinfo(lenv, build_type):
                                                                        'BUILD_TYPE=\'"dynamic"\'',
                                                                        'BUILD_REV=\'"%s"\''%(build_rev),
                                                                        'NAN_BUILDINFO',
-                                                                       'BUILD_PLATFORM=\'"%s"\''%(sys.platform)])
+                                                                       'BUILD_PLATFORM=\'"%s %s"\''%(platform.system(), platform.architecture()[0])])
                obj = [lenv.Object (root_build_dir+'source/creator/%s_buildinfo'%build_type,
                                                [root_build_dir+'source/creator/buildinfo.c'])]
        return obj