You can easily separate compilation and linking by using the -c option to just compile source files and then passing the object files to dmd to link it (or even invoke link yourself).