Is it true that dub compiles everything in the source dir whether it's imported or not?
Rene Zwanenburg
renezwanenburg at gmail.com
Sat Jan 11 05:19:08 PST 2014
On Saturday, 11 January 2014 at 12:16:36 UTC, Gary Willoughby
wrote:
> Is it true that dub compiles everything in the source dir
> whether it's imported or not?
>
> Using it to compile a project that seems to be the case but i
> want to learn if that's true.
>
> I draw this conclusion when investigating this problem:
> http://forum.dlang.org/thread/fvhdqcjfqfojzsyjpidl@forum.dlang.org?page=2#post-qavrnsytpszqiofgavgi:40forum.dlang.org
>
> If it is true then perhaps dub needs to be re-engineered to
> only compile imported source files.
There's the --rdmd switch to use rdmd for building, so it'll only
compile imported files. I'm not sure what it uses as 'main' file
though.
More information about the Digitalmars-d-learn
mailing list