@@ -1320,7 +1320,7 @@ elif env.TargetOSIs('windows'):
13201320
13211321 # /EHsc exception handling style for visual studio
13221322 # /W3 warning level
1323- env .Append (CCFLAGS = ["/EHsc" ,"/W3" ])
1323+ # env.Append(CCFLAGS=["/EHsc","/W3"])
13241324
13251325 # some warnings we don't like:
13261326 # c4355
@@ -1345,8 +1345,8 @@ elif env.TargetOSIs('windows'):
13451345 # on extremely old versions of MSVC (pre 2k5), default constructing an array member in a
13461346 # constructor's initialization list would not zero the array members "in some cases".
13471347 # since we don't target MSVC versions that old, this warning is safe to ignore.
1348- env .Append ( CCFLAGS = ["/wd4355" , "/wd4800" , "/wd4267" , "/wd4244" ,
1349- "/wd4290" , "/wd4068" , "/wd4351" ] )
1348+ # env.Append( CCFLAGS=["/wd4355", "/wd4800", "/wd4267", "/wd4244",
1349+ # "/wd4290", "/wd4068", "/wd4351"] )
13501350
13511351 # some warnings we should treat as errors:
13521352 # c4013
@@ -1363,7 +1363,7 @@ elif env.TargetOSIs('windows'):
13631363 # was probably intended as a variable definition. A common example is accidentally
13641364 # declaring a function called lock that takes a mutex when one meant to create a guard
13651365 # object called lock on the stack.
1366- env .Append ( CCFLAGS = ["/we4013" , "/we4099" , "/we4930" ] )
1366+ # env.Append( CCFLAGS=["/we4013", "/we4099", "/we4930"] )
13671367
13681368 env .Append ( CPPDEFINES = ["_CONSOLE" ,"_CRT_SECURE_NO_WARNINGS" ] )
13691369
@@ -1373,15 +1373,15 @@ elif env.TargetOSIs('windows'):
13731373 # docs say don't use /FD from command line (minimal rebuild)
13741374 # /Gy function level linking (implicit when using /Z7)
13751375 # /Z7 debug info goes into each individual .obj file -- no .pdb created
1376- env .Append ( CCFLAGS = ["/Z7" , "/errorReport:none" ] )
1376+ # env.Append( CCFLAGS= ["/Z7", "/errorReport:none"] )
13771377
13781378 # /DEBUG will tell the linker to create a .pdb file
13791379 # which WinDbg and Visual Studio will use to resolve
13801380 # symbols if you want to debug a release-mode image.
13811381 # Note that this means we can't do parallel links in the build.
13821382 #
13831383 # Please also note that this has nothing to do with _DEBUG or optimization.
1384- env .Append ( LINKFLAGS = ["/DEBUG" ] )
1384+ # env.Append( LINKFLAGS=["/DEBUG"] )
13851385
13861386 # /MD: use the multithreaded, DLL version of the run-time library (MSVCRT.lib/MSVCR###.DLL)
13871387 # /MT: use the multithreaded, static version of the run-time library (LIBCMT.lib)
@@ -1397,42 +1397,42 @@ elif env.TargetOSIs('windows'):
13971397 ( True , True ) : "/MDd" ,
13981398 }
13991399
1400- env .Append (CCFLAGS = [winRuntimeLibMap [(dynamicCRT , debugBuild )]])
1400+ # env.Append(CCFLAGS=[winRuntimeLibMap[(dynamicCRT, debugBuild)]])
14011401
1402- if optBuild :
1402+ # if optBuild:
14031403 # /O2: optimize for speed (as opposed to size)
14041404 # /Oy-: disable frame pointer optimization (overrides /O2, only affects 32-bit)
14051405 # /INCREMENTAL: NO - disable incremental link - avoid the level of indirection for function
14061406 # calls
1407- env .Append ( CCFLAGS = ["/O2" , "/Oy-" ] )
1408- env .Append ( LINKFLAGS = ["/INCREMENTAL:NO" ])
1409- else :
1410- env .Append ( CCFLAGS = ["/Od" ] )
1407+ # env.Append( CCFLAGS=["/O2", "/Oy-"] )
1408+ # env.Append( LINKFLAGS=["/INCREMENTAL:NO"])
1409+ # else:
1410+ # env.Append( CCFLAGS=["/Od"] )
14111411
1412- if debugBuild and not optBuild :
1412+ # if debugBuild and not optBuild:
14131413 # /RTC1: - Enable Stack Frame Run-Time Error Checking; Reports when a variable is used
14141414 # without having been initialized (implies /Od: no optimizations)
1415- env .Append ( CCFLAGS = ["/RTC1" ] )
1415+ # env.Append( CCFLAGS=["/RTC1"] )
14161416
14171417 # Support large object files since some unit-test sources contain a lot of code
1418- env .Append ( CCFLAGS = ["/bigobj" ] )
1418+ # env.Append( CCFLAGS=["/bigobj"] )
14191419
14201420 # This gives 32-bit programs 4 GB of user address space in WOW64, ignored in 64-bit builds
1421- env .Append ( LINKFLAGS = ["/LARGEADDRESSAWARE" ] )
1421+ # env.Append( LINKFLAGS=["/LARGEADDRESSAWARE"] )
14221422
14231423 env .Append (
14241424 LIBS = [
1425- 'DbgHelp.lib ' ,
1426- 'Iphlpapi.lib ' ,
1427- 'Psapi.lib ' ,
1428- 'advapi32.lib ' ,
1429- 'bcrypt.lib ' ,
1430- 'crypt32.lib ' ,
1431- 'kernel32.lib ' ,
1432- 'shell32.lib ' ,
1433- 'version.lib ' ,
1434- 'winmm.lib ' ,
1435- 'ws2_32.lib ' ,
1425+ 'dbghelp ' ,
1426+ 'iphlpapi ' ,
1427+ 'psapi ' ,
1428+ 'advapi32' ,
1429+ 'bcrypt' ,
1430+ 'crypt32' ,
1431+ 'kernel32' ,
1432+ 'shell32' ,
1433+ 'version' ,
1434+ 'winmm' ,
1435+ 'ws2_32' ,
14361436 ],
14371437 )
14381438
@@ -2003,7 +2003,7 @@ def doConfigure(myenv):
20032003
20042004 test_body = """
20052005 #include <windows.h>
2006- #if !defined(NTDDI_WINBLUE )
2006+ #if !defined(NTDDI_WIN8 )
20072007 #error Need Windows SDK Version 8.1 or higher
20082008 #endif
20092009 """
0 commit comments