On 18/01/2007 15:50, A.J.Mechelynck wrote:
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 don't believe it does, but I am not a nmake maven.

I believe VC service packs update the nmake version numbers, so something like vc7 service pack 1 would be 7.10.bbbb.nn (where bbbb is a build number I think - but could well be wrong). A google does not turn up a reference list of nmake version numbers for various VC releases and service packs. The numbers I have used are the only ones I have managed to cobble together.

> (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?)

I chose 6 to be controversial. It does not always pay to assume the latest and greatest - there are still a large number of developers using older VC versions for various reasons. Perhaps it would be better to error out for unknown VC versions so the first person to use it fixes up the make file as required. Something like:

# Abort bulding vim if version of VC is unrecognised.
!ifndef VC_VER
!message *** NOTE
!message Cannot detect version of Visual C being used.  Please update
!message the makefile for the version of Visual C you are using.
!error Make aborted.
!endif

TTFN

Mike
--
Where can I find a spell chequer for taglines?

Reply via email to