On 2011-12-19 19:11, Andrei Alexandrescu wrote:
On 12/19/11 11:57 AM, Jacob Carlborg wrote:
If I recall correctly, if you give xfbuild a file it will compile that
and all its dependencies as an executable. If you give it a directory it
will compile the whole directory as a library. That is also how
dsss/rebuild works.

Maybe it's possible to do something like:

rdmd --build-only -lib foo/*.d

That can be made to work on Unixen but not on Windows, where the
wildcard must be expanded inside rdmd.

It doesn't work right now on Unixen because rdmd considers everything
following the first non-flag argument, an argument to the program
itself, not an argument for rdmd. That doesn't make sense with -lib so
things can be easily arranged to obtain the right semantics.


Andrei

That would be cool. But for Windows then I guess we need some glob function or similar in Phobos, that would good to have anyway.

--
/Jacob Carlborg

Reply via email to