How to correctly deal with dmd.conf with multiple dmd installations - [ref osx, brew, digger]
Vladimir Panteleev
thecybershadow.lists at gmail.com
Wed Sep 26 01:17:24 UTC 2018
On Tuesday, 25 September 2018 at 10:34:17 UTC, aliak wrote:
> When you do `digger install` it seems to not “install” a
> `dmd.conf` but it does install the `dmd` binary in
> `/usr/local/bin/dmd` - but that wasn’t built with `SYSCONFDIR`
> so it doesn’t find `/usr/local/etc/dmd.conf` either, but even
> if it did, that’s the wrong `dmd.conf` (i.e. not the one that
> the build was based on - so would it even point to the right
> env?).
The solution I'm thinking of for Digger is to attempt to detect
the SYSCONFDIR of the current `dmd` binary in `PATH`, and use
that by default when Digger builds D. Doing so would break
Digger's "maximally reproducible builds" policy a little, so we'd
need to be loud about it.
An alternative would be to complain loudly when attempting to
build or (especially) install a compiler with a mismatching
SYSCONFDIR, but still proceed with the default.
More information about the Digitalmars-d
mailing list