druntime redesign

Johan j at j.nl
Tue Mar 17 16:25:22 UTC 2020


On Tuesday, 17 March 2020 at 03:08:41 UTC, Denis Feklushkin wrote:
> On Monday, 16 March 2020 at 22:30:05 UTC, Denis Feklushkin 
> wrote:
>> On Sunday, 15 March 2020 at 18:05:50 UTC, Denis Feklushkin 
>> wrote:
>>> On Sunday, 15 March 2020 at 16:31:35 UTC, Vladimir Panteleev 
>>> wrote:
>>>> On Sunday, 15 March 2020 at 10:29:11 UTC, Denis Feklushkin 
>>>> wrote:
>>>>> What do you think about this? Is that good idea?
>>
>> https://github.com/dlang/druntime/pull/2994
>
> Problem:
>
> It is need to set default import directory depending on the 
> platform. (Like currently compiler does default import for 
> Phobos.) Otherwise Phobos and all other software isn't builds 
> because platform specific code isn't imported.

Rather than setting the import directory, I think a much nicer 
solution is something like this:
https://github.com/weka-io/mecca/blob/master/src/mecca/platform/os/package.d
This works for different OS types, different CPU types, etc. And 
it removes the need to specify a whole list of specific import 
directories for each OS/cpu combination in the config file 
(please keep LDC crosscompilation in mind).

-Johan



More information about the Digitalmars-d mailing list