RejectedSoftware Forums

Sign up

dub: choose compiler in dub.sdl

Is it possible to do this? In fact how is a compiler chosen by dub in general with no setting in dub.sdl ?
Please point me at a place this is documented --- I can't seem to find this.

Re: dub: choose compiler in dub.sdl

On Tue, 30 May 2017 15:03:24 GMT, Carl Sturtivant wrote:

Is it possible to do this? In fact how is a compiler chosen by dub in general with no setting in dub.sdl ?
Please point me at a place this is documented --- I can't seem to find this.

http://code.dlang.org/package-format?lang=sdl#platform-specs

Re: dub: choose compiler in dub.sdl

On Tue, 30 May 2017 15:03:24 GMT, Carl Sturtivant wrote:

Is it possible to do this? In fact how is a compiler chosen by dub in general with no setting in dub.sdl ?
Please point me at a place this is documented --- I can't seem to find this.

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

Re: dub: choose compiler in dub.sdl

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