Ian
Currently, the CL task will recompile a file if and the source file (.c/.cpp) is newer than the .obj file. If the .cpp file includes x.h, and x.h is changed, nothing will be recompiled.
--- #include "x.h" int main(int argc, char **argv) { // do something return 1; } --
Unless I'm doing something incorrectly, and reading the source code
incorrectly... (see Nant.VisualCpp/Taks/ClTask.cs function AreSourcesUpToDate)
I haven't made a patch yet, partly because I haven't figured out yet whether it would be better to move the dependency stuff into another task or something similar. There's the reuse issue, and the possibility of a cache file for dependencies. (The system include files are quite large and can take time to process; don't want to have to do this each time.)
Also, we probably don't want to compile all of the sources if just one of the source files changed. I think the current code does this.
Tharen
-----Original Message-----
From: Ian MacLean [mailto:[EMAIL PROTECTED] Sent: Saturday, September 13, 2003 12:18 PM
To: Tharen D. Debold
Cc: [EMAIL PROTECTED]
Tharen,
we definately care about the cl task. If you have some patches to offer that you think would be applicable we would be very grateful.
Its not clear from your post what you mean by 'I'm in need of the CL task to understand C/C++ dependencies'. Could you please elaborate on
this.
Ian
Sorry, my earlier post was garbled.but...
I'm in need of the CL task to understand C/C++ dependencies; i.e. #include, etc.
I've got a simple "dependency" generator that I can drop in, but I'm wondering if this shouldn't be a separate task; something similar to ANT's "depend" task.
(This way, you could use the "dependency" graph for other external items. GCC, etc.)
Of course, it would be much simpler to build it into the CL task,
Thoughts? Does anyone else care about the CL task?
Tharen
------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers
