use target arch to locate sdks dir on windows

This commit is contained in:
rdb 2013-02-09 11:43:14 +00:00
parent 9549fe066a
commit 4bf17ae286
1 changed files with 8 additions and 5 deletions

View File

@ -1561,13 +1561,16 @@ def GetSdkDir(sdkname, sdkkey = None):
sdir = sdkbase[:]
target = GetTarget()
if (target == 'windows'):
sdir += "/win"
sdir += platform.architecture()[0][:2]
elif (target == 'linux'):
target_arch = GetTargetArch()
if target == 'windows':
if target_arch == 'x64':
sdir += "/win64"
else:
sdir += "/win32"
elif target == 'linux':
sdir += "/linux"
sdir += platform.architecture()[0][:2]
elif (target == 'darwin'):
elif target == 'darwin':
sdir += "/macosx"
sdir += "/" + sdkname