Simple argument to be able to explicitely tell the bitness you want to build Blender in.
python scons\scons.py BF_BITNESS=32 python scons\scons.py BF_BITNESS=64 So from now on for Windows you don't have to run a specific win32 or win64 Python version to get the Blender version you want. If you omit the BF_BITNESS flag the bitness as per Python version will be used as before. Note that this is an argument, so works *only* on the command-line, not in your user-config.py
This commit is contained in:
@@ -111,6 +111,11 @@ btools.print_targets(B.targets, B.bc)
|
|||||||
|
|
||||||
# handling cmd line arguments & config file
|
# handling cmd line arguments & config file
|
||||||
|
|
||||||
|
# bitness stuff
|
||||||
|
tempbitness = int(B.arguments.get('BF_BITNESS', bitness)) # default to bitness found as per starting python
|
||||||
|
if tempbitness in (32, 64): # only set if 32 or 64 has been given
|
||||||
|
bitness = int(tempbitness)
|
||||||
|
|
||||||
# first check cmdline for toolset and we create env to work on
|
# first check cmdline for toolset and we create env to work on
|
||||||
quickie = B.arguments.get('BF_QUICK', None)
|
quickie = B.arguments.get('BF_QUICK', None)
|
||||||
quickdebug = B.arguments.get('BF_QUICKDEBUG', None)
|
quickdebug = B.arguments.get('BF_QUICKDEBUG', None)
|
||||||
|
@@ -159,7 +159,7 @@ def validate_arguments(args, bc):
|
|||||||
'BF_BSC', 'BF_CONFIG',
|
'BF_BSC', 'BF_CONFIG',
|
||||||
'BF_PRIORITYLIST', 'BF_BUILDINFO','CC', 'CXX', 'BF_QUICKDEBUG',
|
'BF_PRIORITYLIST', 'BF_BUILDINFO','CC', 'CXX', 'BF_QUICKDEBUG',
|
||||||
'BF_LISTDEBUG', 'LCGDIR', 'BF_X264_CONFIG', 'BF_XVIDCORE_CONFIG',
|
'BF_LISTDEBUG', 'LCGDIR', 'BF_X264_CONFIG', 'BF_XVIDCORE_CONFIG',
|
||||||
'BF_UNIT_TEST']
|
'BF_UNIT_TEST', 'BF_BITNESS']
|
||||||
|
|
||||||
okdict = {}
|
okdict = {}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user