Precompiled headers with MSVC
"Paul Richards" <[email protected]> Wed, 23 Apr 2008 14:54:59 +0100
| Newsgroups | gmane.comp.java.ant-contrib.devel |
|---|---|
| Message-ID | <[email protected]> |
I have a static library which builds fine with Ant + cpptask using MSVC. I am trying to add a precompiled header and I'm finding that I cannot get cpptask's <precompile> element to work. When I add the precompile element under <cc> I'd expect two things to happen: 1) The cpp file for the precompiled header should be compiled *first* (as it is now required by all subsequent compiles) and with the /Yc flag. 2) The other source files should have the "use precompiled header" (/Yu) flag set. Neither of these things appear to happen. Is there an example of <precompile> usage? -- Paul Richards ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone