Hi!

I was going to report this bug, but fortunately checked whether
someone already created it beforehand :-)
So, the culprit is highly likely
https://github.com/mesonbuild/meson/commit/0ec039d2597526c670f7e0478a7b5008e14ff474
This passes LDFLAGS from the environment to the compiler to figure out
the linker. However, for LDC, you can't simply do that - the
environment linker flags would need to be preprocessed first in order
to be suitable for LDC, like so:
https://github.com/mesonbuild/meson/blob/master/mesonbuild/compilers/d.py#L286

This is really a Meson bug, as we can not expect LDFLAGS to be passed
to anything but the linker, so sanitizing these beforehand does not
make much sense (especially since this worked before).

I'll report it upstream.

Cheers,
    Matthias

-- 
I welcome VSRE emails. See http://vsre.info/

Reply via email to