Dub and compilation

drug via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Apr 10 23:57:12 PDT 2017


11.04.2017 08:15, Russel Winder via Digitalmars-d-learn пишет:
> As I understand it, Dub compiles a downloaded dependency into the local
> Dub cache. This means you cannot store a debug build and a release
> build for multiple architectures and different compilers, at the same
> time, and you only get a .a file, no .so file.
>
> Cargo downloads source to the cache but compiles to the project area,
> separating debug and release builds. Each project has it's own
> compilation of the shared source.
>
> I believe Cargo has this right and Dub has this wrong. So wrong that
> SCons, CMake, and Meson have a strong role in the D world. As it
> stands, Dub is fine for fetching dependencies and then has no more role
> to play in the build of a project. Actually then the Dub command has no
> useful role since it may well be better for the build tools to just use
> the Dub repository API directly.
>
> Unless I have misunderstood Dub, or someone is fixing it.
>
There is possibility to place binaries to specified directory using 
`targetPath` (see `Build settings` in Dub documentation)


More information about the Digitalmars-d-learn mailing list