How do people feel about putting source compiler directives inside rdmd?

Andre Pany andre at s-e-a-p.de
Wed Dec 4 06:12:07 UTC 2019


On Tuesday, 3 December 2019 at 16:33:32 UTC, Petar Kirov 
[ZombineDev] wrote:
> On Tuesday, 3 December 2019 at 13:07:04 UTC, aliak wrote:
>> [...]
>
> Dub is supposed to cache every build artifact, but for some 
> reason the `isUpToDate` function returns `false` for a 
> single-file package I am testing with.
>
> BTW, on what OS and hardware are you testing?
> I am on Linux with an SSD, so this may explain why I get faster 
> results than you.
>
> Dub has everything necessary to reach execution time parity up 
> +/- 5% with rdmd.
> The dependency checking is relatively fast for me, but if 
> necessary that can be easily disabled, using the 
> `--skip-registry` option.
> If it's not already like that IMO dub shouldn't check for 
> updates for single-file packages. For projects with 
> dub.selections.json AFAIK it doesn't check for updates if 
> dub.selection.json contains the versions of transitive 
> dependencies and they had already been fetched.
>
> I'll look into the problem with Dub's `isUpToDate`.

I testet (dub master) the isUpToDate behavior on windows, linux 
(shebang and no shebang),
with source code files having *.d extension and without.

isUpToDate is always working fine and uses the last build.

Kind regards
André


More information about the Digitalmars-d mailing list