[ant-contrib - Help] RE: cc calls cl twice when used from msvc
"SourceForge.net" <[email protected]> Tue, 01 Apr 2008 09:54:33 -0700
| Newsgroups | gmane.comp.java.ant-contrib.devel |
|---|---|
| Message-ID | <[email protected]> |
Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=4877854 By: carnold The preliminary calls to cl and link are to determine what version of cl and link are being used so it can be compared against the version info that is stored in the history. Unfortunately, the Microsoft tools do not (or at least did not) have a command switch to output the version info and then exit. "cl /?" will not generate an error, but it will paginate the output which will cause cpptasks to stall, so the workaround was to use "cl /bogus" which causes the version to be output before the unrecognized option caused the compiler to exit. When cpptasks was written it was very common to have multiple versions of a single compiler around and you did not want to end up with a build directory with a object files from a mix of compilers. If you switch what compiler was on the path between invocations. If you are willing to hack cpptasks, the easiest way to suppress the version check is to modify AbstractProcessor.getIndentifer(String[], String) so that it just returns the fallback parameter instead of invoking the command. ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge.net and visit: https://sourceforge.net/forum/unmonitor.php?forum_id=113701 ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace