Need help with implicit dependency scanner

View: New views
2 Messages — Rating Filter:   Alert me  

Need help with implicit dependency scanner

by Anatoli Sakhnik-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi there!

Our project uses code generation, and the source code is split into
few files. They are included with a directive "//%include" or
something similar, and only the central one needs to be built.
However, if I update the included ones, the central one is not
rebuild, so implicit dependencies aren’t get into account.

Can anyone look into the attached archive (very tiny excerpt) and tell
me what’s wrong with the scanner?

— Anatoli


_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build

swg.tgz (738 bytes) Download Attachment

Re: Need help with implicit dependency scanner

by Anatoli Sakhnik-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Well, I've found out. It appears that naive pattern '(.*)' consumes
not only an unquoted file name, but also <cr> and other invisible
tailing characters. So using more sophisticated '([a-zA-Z1-9.]*)'
instead does the work.

Although I don't understand why ever <cr> appears in the matching
string, but the solution is enough for us. Sorry troubling.

Anatoli

2009/7/8 Anatoli Sakhnik <sakhnik@...>:

> Hi there!
>
> Our project uses code generation, and the source code is split into
> few files. They are included with a directive "//%include" or
> something similar, and only the central one needs to be built.
> However, if I update the included ones, the central one is not
> rebuild, so implicit dependencies aren’t get into account.
>
> Can anyone look into the attached archive (very tiny excerpt) and tell
> me what’s wrong with the scanner?
>
> — Anatoli
>
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build