[ ant-contrib-Bugs-1720379 ] CC task doesn't pick up precompiled header

"SourceForge.net" <[email protected]>
Newsgroups gmane.comp.java.ant-contrib.devel
Message-ID <[email protected]>
Bugs item #1720379, was opened at 2007-05-16 14:55
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=416920&aid=1720379&group_id=36177

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: cpptasks
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Caleb Cittadino (sillydino)
Assigned to: Curt Arnold (carnold)
Summary: CC task doesn't pick up precompiled header 

Initial Comment:
If you set the name of the compiler to "vc6" then the prototype file listed in a precompile tag gets picked up.  However, if you set the name of the compiler to "gcc" the prototype is not picked up.  For example, the below will not result in the file stdafx.cpp being picked up:

<target name="BuildSource" depends="init">
   <cc 
      debug = "false"
      multithreaded = "false"
      name = "gcc"
      objdir = "build/objdir"
      outfile = "build/XDrawServicesTest"
      outtype = "executable"
      subsystem="console"
   >
      <linker name="g++" /> 
      <precompile
prototype="/Users/calebcittadino/P4Workspaces/Core/Libraries/XDrawServices/TestBed/TestApp/src/stdafx.cpp">
         <except>
	    <fileset dir="../../../../Common/Constructs/Logging" includes="Log.cpp"/>
         </except>
      </precompile>
...

while the below does work:

<target name="BuildSource" depends="init">
   <cc 
      debug = "false"
      multithreaded = "false"
      name = "vc6"
      objdir = "build/objdir"
      outfile = "build/XDrawServicesTest"
      outtype = "executable"
      subsystem="console"
   >
      <linker name="g++" /> 
      <precompile
prototype="/Users/calebcittadino/P4Workspaces/Core/Libraries/XDrawServices/TestBed/TestApp/src/stdafx.cpp">
         <except>
	    <fileset dir="../../../../Common/Constructs/Logging" includes="Log.cpp"/>
         </except>
      </precompile>
...

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=416920&aid=1720379&group_id=36177

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.