"Torben Dannhauer" <torben_at_dannhauer.info> wrote:
> please find attached my extended Makefile.msvc to allow compilation with
> Visual Studio 2013 RTM.
You should have simply provided the diffs:
@@ -125,6 +125,8 @@
CC_VERS_NUM = 110
!ELSEIF "$(_NMAKE_VER)" == "11.00.60315.1"
CC_VERS_NUM = 110
+!ELSEIF "$(_NMAKE_VER)" == "12.00.21005.1"
+CC_VERS_NUM = 120
!ELSE
! MESSAGE Unknown value for _NMAKE_VER macro: "$(_NMAKE_VER)"
! MESSAGE Please, report this condition on the c-ares development
----------
But I fail to understand why this makefile has to be this complex. It uses
some suspicious heuristics to assert the MSVC compiler version; thinking
that $(_NMAKE_VER) is related to the CL version. Is it really safe to assume
they are correlated? An old nmake can just work fine with a new MSVC compiler,
or not?
Can it be simplified to just check for 2 CC_VERS_NUM? An old and a new?
Or drop '/Gz' and '/RTCsu' all together.
--gv
Received on 2013-11-22