Is it true that dub compiles everything in the source dir whether it's imported or not?
Mike Parker
aldacron at gmail.com
Sat Jan 11 05:01:44 PST 2014
On 1/11/2014 9:16 PM, 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.
I think adding an "excludedSourceFiles" entry to your package.json is is
what you want. See [1].
[1] http://code.dlang.org/package-format
More information about the Digitalmars-d-learn
mailing list