dynamic linker flags with dub

KytoDragon kytodragon at notmyemail.com
Mon Apr 29 22:20:04 UTC 2024


I want to use dll-style hot-reloading for a windows application 
which requires a different name for the PDB file for each 
compilation. (windows locks the pdb file when loading the dll and 
the compiler can't create a new pdb with the same name). How can 
I achieve this with dub? Is there a way to inject variables into 
the linker flags?

E.g. something like this in the dub.json:

"lflags-windows-ldc": ["/PDB:foo_%random%.pdb"]


More information about the Digitalmars-d-learn mailing list