How do I statically build a project using DUB?

Kirill kirill.saidov at mail.com
Sat Aug 29 11:27:28 UTC 2020


I need a stand-alone executable that does not require the user to 
install any libraries on their computer. Everything should be 
packed into the executable.

I understand that I need to statically link all of the libraries 
I use in my project, but how do I do this? What do I need to add 
to dub.json file? What compiler flags do I need to use?

Thanks in advance.



More information about the Digitalmars-d-learn mailing list