On Mon, 04 Sep 2017 02:51:33 GMT, Joakim wrote:

You want a package to only build with a particular compiler? Not sure about that, but you can tell dub to use a particular compiler generally with the --compiler flag or by writing a .dub/settings.json. Otherwise, dub will search your path for common D compilers, see here:

https://github.com/dlang/dub/blob/master/source/dub/dub.d#L1169

If you're using a new feature that is only supported by DMD, static foreach for example, it might be nice to get a friendly error message.

/Jacob Carlborg