ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marc H. Graham" <dr...@bellatlantic.net>
Subject CC -- Microsoft -- outtype -- multithreaded
Date Wed, 02 Nov 2005 23:32:30 GMT
I'm compiling with outtype=executable and multithreaded=true. It's
generating the compiler argument /MD, which is for dll's, not .exe's. 

Is this a bug? Or is there someway to get it to do the right thing?

For completeness, here's the xml:

  <cc name="msvc" 
      outtype="executable"
      multithreaded="true"
      objdir="${basedir}/objdir"
      exceptions="true"
      rebuild="true"
      optimize="speed"
      subsystem="console">
     <defineset define="WIN32,NDEBUG,_CONSOLE,_MBCS">
        <define name="CRTAPI1" value="_cdecl"/>
        <define name="CRTAPI2" value="_cdecl"/>
     </defineset>
     <includepath refid="includePath"/>
     <fileset dir="${sourcedir}" 
              includes="*.cpp"/>
   </cc>

And here's a part of the ant-output:

cl /c /nologo /GX /O1 /DNDEBUG /MD /DCRTAPI1=_cdecl /DCRTAPI2=_cdecl
/DWIN32 /DNDEBUG /D_CONSOLE /D_MBCS

That /MD is wrong (I'm pretty sure). Any way to fix it?

Marc H. Graham


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message