The default flags for cl.exe includes the -O1 option which enables optimizations. Unfortunately, the Standard Edition of Visual Studio doesn't support that option so outputs a warning each time we compile. The attached patch removes the -O1 option if it detects that the compiler is the Standard Edition. I made a slight fix to Configure.pl while I was at it. It turns out that eval can return undef even if there was no error so it's not safe to say 'eval $foo or die $@;'. Instead, we should say 'eval $foo; die $@ if $@;' since eval guarantees that $@ will be a null string if there was no error.
Jason.
O1.patch
Description: Binary data