www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - vibe.d + dub dynamic library

reply Benjamin Thaut <code benjamin-thaut.de> writes:
Is it possible to get dub to build vibe.d into a dynamic library?
Or is it at least possible to make dub link against the shared version 
of phobos?
I found this blog post about dynamic linktimes, unfortunately it does 
not describe how to actually make dub use the dynamic version of phobos.

https://code.dawg.eu/reducing-vibed-turnaround-time-part-1-faster-linking.html

(I'm on linux)

Kind Regards
Benjamin Thaut
Jan 02 2015
parent Jacob Carlborg <doob me.com> writes:
On 2015-01-02 19:44, Benjamin Thaut wrote:
 Is it possible to get dub to build vibe.d into a dynamic library?
 Or is it at least possible to make dub link against the shared version
 of phobos?
 I found this blog post about dynamic linktimes, unfortunately it does
 not describe how to actually make dub use the dynamic version of phobos.
I'm not sure how Dub builds vibe.d but if a shared library is present isn't that usually preferred to static libraries? -- /Jacob Carlborg
Jan 03 2015