On 06/02/2015 02:53 AM, Jacob Carlborg wrote:
On 2015-06-01 20:39, Nick Sabalausky wrote:
Unlike rdmd, dub always tries to compile all sources regardless of
whether they're actually imported. This has been a constant source of
problems for me, including breakage of conditional importing under
various circumstances.
Isn't that the only way to compile it if the project is a library?
without having to use workarounds like create a new module which imports
all other modules.
My libs always have a "package.d" or equivalent anyway, so I don't find
it to be any sort of "workaround".
Even without that, rdmd-style still works if the lib is being used as a
source lib rather than a pre-compiled static (or dynamic) lib.
But yea, if you're doing a precompiled lib and you don't want any sort
of "root" module (don't see it as all that big of a deal though), then
yea I guess you'd have to collect the list of sources dub-style instead
of rdmd-style.