darcs patch: add --dependencies option to output file dependencies.
Hi John,
Part of this is very hokey, since I had trouble tracking which files
led to which libraries (your data types are a bit confusing). I'm
also flexible on the option naming and details (e.g. is it important
to be able to handle filenames with embedded newlines?). The idea,
obviously, is to enable franchise to know when to rebuild. It could
also be used with Makefiles, so we might also prefer a more
make-friendly output.
Oh, and it doesn't track dependencies on included files. To do that,
we'd need help from the C preprocessor, which would be nice to
add--but not critical.
David
Fri Sep 4 10:45:18 EDT 2009 David Roundy
Hi John,
Just so you know, the franchise support for jhc relies on this patch.
I've got it working to compile libraries and executables, but without
this, it won't know when to recompile. There are still some issues
like inability to specify C code to be compiled and linked (so far as
I can tell), but for many users it should work fine.
David
On Fri, Sep 4, 2009 at 11:16 AM, David
Roundy
Hi John,
Part of this is very hokey, since I had trouble tracking which files led to which libraries (your data types are a bit confusing). I'm also flexible on the option naming and details (e.g. is it important to be able to handle filenames with embedded newlines?). The idea, obviously, is to enable franchise to know when to rebuild. It could also be used with Makefiles, so we might also prefer a more make-friendly output.
Oh, and it doesn't track dependencies on included files. To do that, we'd need help from the C preprocessor, which would be nice to add--but not critical.
David
Fri Sep 4 10:45:18 EDT 2009 David Roundy
* add --dependencies option to output file dependencies.
-- David Roundy
On Mon, Sep 07, 2009 at 07:31:47AM -0400, David Roundy wrote:
Just so you know, the franchise support for jhc relies on this patch. I've got it working to compile libraries and executables, but without this, it won't know when to recompile. There are still some issues like inability to specify C code to be compiled and linked (so far as I can tell), but for many users it should work fine.
Yeah, I think this is a very good idea. But I am not sure it is the best way to implement it. I may rewrite it to implement it in a somewhat different way, but if I don't get around to it, I'll include this patch in the next release. John -- John Meacham - ⑆repetae.net⑆john⑈ - http://notanumber.net/
participants (2)
-
David Roundy -
John Meacham