April 01, 2015
On Wed, 01 Apr 2015 19:16:09 +1100, Daniel Murphy wrote:

> "ketmar"  wrote in message news:mfft3m$2uuc$66@digitalmars.com...
> 
>> actually, the fix is very easy: ditch "idgen.d" in favor of old
>> "idgen.c",
>> and patch makefile. both can be done automatically (i did). whoa, i can
>> build DMD without problems again!
> 
> Not exactly a long-term solution.

sure, but it works for now, and will work for a long time, as DDMD transition is a lenghty process.

this will not fix the problem, of course, but it provides working workaround for those who don't have a time/desire to fix it properly. besides, it allows to build DMD without DMD. ;-)

April 01, 2015
On Wednesday, 1 April 2015 at 02:29:05 UTC, Martin Nowak wrote:
> The lookup order for the config file should be changed to the following.
> - next to dmd binary (highest precedence so that I can have multiple
> installations)
> - per-user conf folder (HOME) (to override the system-wide config)
> - system-wide conf folder (to allow package installations .deb/.rpm)

I've always thought it worked like this :-) So I'm in favour of this change.
April 01, 2015
"ketmar"  wrote in message news:mfgdjf$2uuc$69@digitalmars.com... 

> sure, but it works for now, and will work for a long time, as DDMD transition is a lenghty process.

Hopefully not too lengthy!
April 01, 2015
On 2015-04-01 07:00, H. S. Teoh via Digitalmars-d wrote:
> On Wed, Apr 01, 2015 at 04:28:43AM +0200, Martin Nowak via Digitalmars-d wrote:

>> The lookup order for the config file should be changed to the following.
>> - next to dmd binary (highest precedence so that I can have multiple
>> installations)
>> - per-user conf folder (HOME) (to override the system-wide config)
>> - system-wide conf folder (to allow package installations .deb/.rpm)
>>
>> The current situation is unmaintainable.
>
> +1. This is the order that makes the most sense. I'm astonished it
> wasn't implemented this way from the start.

It isn't implemented like that? Then how is it implemented?

-- 
/Jacob Carlborg
April 01, 2015
On Wed, 01 Apr 2015 22:36:39 +1100, Daniel Murphy wrote:

> "ketmar"  wrote in message news:mfgdjf$2uuc$69@digitalmars.com...
> 
>> sure, but it works for now, and will work for a long time, as DDMD transition is a lenghty process.
> 
> Hopefully not too lengthy!

i hope too, as i really want to work on my compiler branch with D! ;-)

April 01, 2015
The way I have set it up personally, there is a single /etc/dmd.conf for latest released package and bunch of ~/devel/dlang-X/bin folders, each with own dmd binary and own dmd.conf side by side with that dmd binary - all added to PATH. Seems to pick up the matching one depending on which binary I actually call.
April 02, 2015
On Wednesday, 1 April 2015 at 07:10:20 UTC, Andrei Alexandrescu wrote:
> Everything can be specified in the command line. -- Andrei

This might be a feasible approach for dlang.org or phobos (it's already tedious there), but this doesn't work when you actually want to use a compiler from the command line.
April 02, 2015
On Wednesday, 1 April 2015 at 19:20:14 UTC, Dicebot wrote:
> The way I have set it up personally, there is a single /etc/dmd.conf for latest released package and bunch of ~/devel/dlang-X/bin folders, each with own dmd binary and own dmd.conf side by side with that dmd binary - all added to PATH. Seems to pick up the matching one depending on which binary I actually call.

Yes, that's what I used for years. but it doesn't work when you need to use the system-wide dmd in ~/devel/dlang-X.

That's the current order, the culprit is current directory which overrides anything else and home directory which overrides exe dir.

o current directory
o home directory
o exe directory (windows)
o directory off of argv0
o SYSCONFDIR (default=/etc/) (non-windows)

==========

This is what it should be IMHO.

o exe directory (windows)
o directory off of argv0
o home directory
o SYSCONFDIR (default=/etc/) (non-windows)

Take the conf from next to the compiler, or look in the home dir which can override the system-wide conf, or look at the system-wide conf.

I guess this might be used completely different on Windows, especially considering that the dmd.conf contains VCDIR variables and such. Any info would be welcome.

April 02, 2015
On 2015-04-02 02:33, Martin Nowak wrote:

> o current directory
> o home directory
> o exe directory (windows)
> o directory off of argv0
> o SYSCONFDIR (default=/etc/) (non-windows)

This sucks.

-- 
/Jacob Carlborg
1 2
Next ›   Last »