Skip to content

Commit ef213b8

Browse files
committed
more win64 fixing
1 parent a92bead commit ef213b8

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

SConstruct

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -457,10 +457,13 @@ if GetOption( "prefix" ):
457457
installDir = GetOption( "prefix" )
458458

459459
def findVersion( root , choices ):
460-
for c in choices:
461-
if ( os.path.exists( root + c ) ):
462-
return root + c
463-
raise "can't find a version of [" + root + "] choices: " + choices
460+
if not isinstance(root, list):
461+
root = [root]
462+
for r in root:
463+
for c in choices:
464+
if ( os.path.exists( r + c ) ):
465+
return r + c
466+
raise RuntimeError("can't find a version of [" + repr(root) + "] choices: " + repr(choices))
464467

465468
def choosePathExist( choices , default=None):
466469
for c in choices:
@@ -592,8 +595,8 @@ elif "win32" == os.sys.platform:
592595
env.Append( LIBPATH=[ javaHome + "/Lib" ] )
593596
javaLibs += [ "jvm" ];
594597

595-
winSDKHome = findVersion( "C:/Program Files/Microsoft SDKs/Windows/" ,
596-
[ "v6.0" , "v6.0a" , "v6.1" ] )
598+
winSDKHome = findVersion( [ "C:/Program Files/Microsoft SDKs/Windows/", "C:/Program Files (x86)/Microsoft SDKs/Windows/" ] ,
599+
[ "v6.0" , "v6.0a" , "v6.1", "v7.0A" ] )
597600

598601
env.Append( CPPPATH=[ boostDir , "pcre-7.4" , winSDKHome + "/Include" ] )
599602

0 commit comments

Comments
 (0)