Mike Williams wrote:
On 17/01/2007 19:44, Bram Moolenaar wrote:
Mike Williams wrote:

Attached is a patch to use VC8 specific optimization options. FTR, VC8 no longer supports the /Gn processor code generation directive, and the makefile now uses link time code generation when not optimizing for space.

Although MS keeps changing the arguments, the new ones mostly get used
again in future versions.  Thus this check:

 + !if "$(_NMAKE_VER)" != "8.00.50727.42"

Should probably check if the version is greater than or smaller than
this specific number.  At least do the comparing with this specific
number once and pass the result to further "if"s.

Proposal #2 - now derives VC version from _NMAKE_VER. Updated a couple of checks for VC4 so the file is a bit more more self documenting.

Enjoy.

Mike


...sorry, my mailer shows the patches inline but doesn't quote them on reply.

Rather than testing for specific strings, couldn't you just use the first digit(s) of _NMAKE_VER as the "version number" if followed by a period? Or doesn't the make evaluation syntax allow for that? (I suppose if someday the version string becomes, let's say, 9.05.77643.25 we should take this as meaning "version 9" rather than default to "version 6" don't you think?)

Best regards,
Tony.

Reply via email to