Thread overview | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
December 01, 2015 Dub use | ||||
---|---|---|---|---|
| ||||
Attachments:
| Dub appears to use only dmd, there appears to be no option fir the dub.sdl file to tell it to use ldc2. Or am I just missing something – very likely.
--
Russel. ============================================================================= Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.winder@ekiga.net 41 Buckmaster Road m: +44 7770 465 077 xmpp: russel@winder.org.uk London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder
|
December 01, 2015 Re: Dub use | ||||
---|---|---|---|---|
| ||||
Posted in reply to Russel Winder | On Tuesday, 1 December 2015 at 18:43:17 UTC, Russel Winder wrote:
> Dub appears to use only dmd, there appears to be no option fir the dub.sdl file to tell it to use ldc2. Or am I just missing something – very likely.
dub --compiler=ldc2
|
December 01, 2015 Re: Dub use | ||||
---|---|---|---|---|
| ||||
Posted in reply to Russel Winder | On Tuesday, 1 December 2015 at 18:43:17 UTC, Russel Winder wrote:
to:
> Dub appears to use only dmd, there appears to be no option fir the dub.sdl file to tell it to use ldc2. Or am I just missing something – very likely.
I reply:
bolocks.
;)
|
December 01, 2015 Re: Dub use | ||||
---|---|---|---|---|
| ||||
Posted in reply to BBaz | On Tuesday, 1 December 2015 at 18:45:25 UTC, BBaz wrote:
> On Tuesday, 1 December 2015 at 18:43:17 UTC, Russel Winder wrote:
>
> to:
>
>> Dub appears to use only dmd, there appears to be no option fir the dub.sdl file to tell it to use ldc2. Or am I just missing something – very likely.
>
> I reply:
>
> bolocks.
>
> ;)
bollocks, indeed.
|
December 01, 2015 Re: Dub use | ||||
---|---|---|---|---|
| ||||
Posted in reply to Brad Anderson Attachments:
| On Tue, 2015-12-01 at 18:45 +0000, Brad Anderson via Digitalmars-d wrote: > […] > > dub --compiler=ldc2 Is there an in dub.sdl version of this? -- Russel. ============================================================================= Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.winder@ekiga.net 41 Buckmaster Road m: +44 7770 465 077 xmpp: russel@winder.org.uk London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder |
December 01, 2015 Re: Dub use | ||||
---|---|---|---|---|
| ||||
Attachments:
| 2015-12-01 20:21 GMT+01:00 Russel Winder via Digitalmars-d < digitalmars-d@puremagic.com>:
> On Tue, 2015-12-01 at 18:45 +0000, Brad Anderson via Digitalmars-d wrote:
> > […]
> >
> > dub --compiler=ldc2
>
> Is there an in dub.sdl version of this?
>
> --
> Russel.
>
> =============================================================================
> Dr Russel Winder t: +44 20 7585 2200 voip:
> sip:russel.winder@ekiga.net
> 41 Buckmaster Road m: +44 7770 465 077 xmpp: russel@winder.org.uk
> London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder
>
>
Nope. And there won't be any, as it would imply supporting the idea of having packages that only compiles with a specific compiler (not very future-proof).
|
December 01, 2015 Re: Dub use | ||||
---|---|---|---|---|
| ||||
Posted in reply to Russel Winder | Am 01.12.2015 um 20:21 schrieb Russel Winder via Digitalmars-d:
> On Tue, 2015-12-01 at 18:45 +0000, Brad Anderson via Digitalmars-d
> wrote:
>> […]
>>
>> dub --compiler=ldc2
>
> Is there an in dub.sdl version of this?
>
Not currently. dub.sdl is not ideal, because it would lead to ambiguities within the dependency graph, but dub.selections.json could be extended to support that.
What is also possible is to add a "defaultCompiler" field to ~/.dub/settings.json to change the default compiler user-wide.
|
December 02, 2015 Re: Dub use | ||||
---|---|---|---|---|
| ||||
Attachments:
| On Tue, 2015-12-01 at 20:37 +0100, Mathias Lang via Digitalmars-d wrote: > […] > Nope. And there won't be any, as it would imply supporting the idea > of > having packages that only compiles with a specific compiler (not very > future-proof). Good point. I didn't think this through enough before commenting. Though Sönke has provided a couple of ideas to achieve the goal in a sensible fashion. So I'm glad I did ask. :-) -- Russel. ============================================================================= Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.winder@ekiga.net 41 Buckmaster Road m: +44 7770 465 077 xmpp: russel@winder.org.uk London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder |
December 02, 2015 Re: Dub use | ||||
---|---|---|---|---|
| ||||
Posted in reply to Sönke Ludwig Attachments:
| On Tue, 2015-12-01 at 20:38 +0100, Sönke Ludwig via Digitalmars-d wrote: > […] > Not currently. dub.sdl is not ideal, because it would lead to > ambiguities within the dependency graph, but dub.selections.json > could > be extended to support that. As Mathias pointed out putting the compiler choice in the dub.sdl file is actually not a good idea. I think leaving the dub.selection.json file as an automated file is probably best, it means it is disposable and recreatable easily without fear. > What is also possible is to add a "defaultCompiler" field to ~/.dub/settings.json to change the default compiler user-wide. I hadn't thought of that, possibly because the file name has .json as an extension. :-) I wonder if having a per-project file for this sort of "not part of the package specification, but part of the users use of the package" might be a good idea. THis way there could be different defaults on a per- project basis. Perhaps a settings.sdl file per project that takes priority of the settings.sdl/settings.json file in ~/.dub. -- Russel. ============================================================================= Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.winder@ekiga.net 41 Buckmaster Road m: +44 7770 465 077 xmpp: russel@winder.org.uk London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder |
December 02, 2015 Re: Dub use | ||||
---|---|---|---|---|
| ||||
Attachments:
| 2015-12-02 10:53 GMT+01:00 Russel Winder via Digitalmars-d < digitalmars-d@puremagic.com>:
> On Tue, 2015-12-01 at 20:38 +0100, Sönke Ludwig via Digitalmars-d wrote:
> >
> > What is also possible is to add a "defaultCompiler" field to ~/.dub/settings.json to change the default compiler user-wide.
>
> I hadn't thought of that, possibly because the file name has .json as an extension. :-)
>
> I wonder if having a per-project file for this sort of "not part of the package specification, but part of the users use of the package" might be a good idea. THis way there could be different defaults on a per- project basis. Perhaps a settings.sdl file per project that takes priority of the settings.sdl/settings.json file in ~/.dub.
>
> --
> Russel.
>
> =============================================================================
> Dr Russel Winder t: +44 20 7585 2200 voip:
> sip:russel.winder@ekiga.net
> 41 Buckmaster Road m: +44 7770 465 077 xmpp: russel@winder.org.uk
> London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder
>
>
I'd personally like to have a `.dubconfig` settings, similar to how
`.gitconfig` does it (same locations and lookup rules, e.g. ~/.dubconfig
taking precedence over the global one). Some obvious candidates are the
default compiler, where to store the package cache, the default file format
to use, and the default values that gets used for copyright / author /
license when running `dub init`.
I guess this should be part of an issue :)
|
Copyright © 1999-2021 by the D Language Foundation