[dmd-beta] 2.066.1

Andrei Alexandrescu via dmd-beta dmd-beta at puremagic.com
Mon Oct 27 13:49:39 PDT 2014


On 10/27/14 1:23 PM, Martin Nowak wrote:
> On 10/27/2014 08:24 PM, Andrei Alexandrescu wrote:
>> On 10/27/14 12:09 PM, Martin Nowak wrote:
>>> On 10/27/2014 06:57 AM, Andrei Alexandrescu wrote:
>>>>
>>>> Martin, Sönke, do you think we can bring dub to the point we don't rely
>>>> on machine specifics (i.e. dmd.conf) to build everything? That might
>>>> mean extra options.
>>>
>>> While specifying include and library paths on the dub command line can
>>> definitely be done. Not so sure whether that fits into dub's approach.
>>
>> Fair enough. One possible argument is that setting the compiler entails
>> setting flags, too (because e.g. gdc and dmd have different flags).
>
> Dub has an abstraction shim to unify compiler flags.
> http://code.dlang.org/package-format#build-requirements
> http://code.dlang.org/package-format#build-options
>
> You'd use `dub build -b release` for an optimzed build regardless of
> what compiler you chose.

I see, thanks. That would suggest it would be appropriate to add a -I 
flag that allows setting the include path for all compilers.

>>> I think it is more a DPL problem setting up a simple build env from
>>> sources requires so many steps.
>>
>> Well the question is how to move forward from where we are.
>
> Improve and use the scripts.
> https://github.com/D-Programming-Language/tools/blob/master/update.sh
> https://github.com/D-Programming-Language/installer/blob/master/bootstrap/bootstrap-dmd.bat
>
>
> The meta repo idea would also help here.
> https://issues.dlang.org/show_bug.cgi?id=11792

Thanks for looking into this.


Andrei


More information about the dmd-beta mailing list