So, I have a rather large project where the main() function is in a file that comes fairly late in lexical order, but it looks like dub passes files to dmd in (roughly) alphabetical order.
This shouldn't matter, but it looks like dmd clobbers some of the debug information if the module with main() in it doesn't get passed first on the command line (Namely it seems that it can't find the 'frame base' which prevents DDT's debugger from looking at stack variables).
Is there any way to override this, to ensure that a particular module gets passed to dmd first?