Bugs item #1720379, was opened at 2007-05-16 14:55
Message generated for change (Settings changed) made by sillydino
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: 8
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
|