Thread overview
meson and d
Jun 09, 2019
dkd
Jun 10, 2019
Matthias Klumpp
Jun 10, 2019
dkd
Jun 10, 2019
Andre Pany
June 09, 2019
hi, i need some meson configuration that works with dmd and ldc

my setting don't work. because meson complains it cannot find the d compiler.

d compiler can be invoked on command line.

i use :
set dmd_path="path/to/d/base"
set PATH=%dmd_path%\bin;%PATH%;

mingw can be detected by setting GCC_HOME

i use win7 and x86
meson 0.50.1
June 10, 2019
On Sunday, 9 June 2019 at 13:13:28 UTC, dkd wrote:
> hi, i need some meson configuration that works with dmd and ldc
>
> my setting don't work. because meson complains it cannot find the d compiler.
>
> d compiler can be invoked on command line.
>
> i use :
> set dmd_path="path/to/d/base"
> set PATH=%dmd_path%\bin;%PATH%;
>
> mingw can be detected by setting GCC_HOME
>
> i use win7 and x86
> meson 0.50.1

Are you using Windows? Meson's D support has never been tested there.
In theory though you can point it at any D compiler by setting the "DC" environment variable.
June 10, 2019
hi,

> In theory though you can point it at any D compiler by setting the "DC" environment variable.

i found at early morning, that by setting variable at system level(through my computer->environment setting) meson can detect d.

it is the old usual way of setting variable that i almost forgot.

i'll try the DC variable

thanks.

# i use mason because i am stuck with dub, i got lost in documentation.

# reggae that i build from source, it works but at the end it throws exception.
June 10, 2019
On Monday, 10 June 2019 at 16:51:15 UTC, dkd wrote:
> hi,
>
>> In theory though you can point it at any D compiler by setting the "DC" environment variable.
>
> i found at early morning, that by setting variable at system level(through my computer->environment setting) meson can detect d.
>
> it is the old usual way of setting variable that i almost forgot.
>
> i'll try the DC variable
>
> thanks.
>
> # i use mason because i am stuck with dub, i got lost in documentation.
>
> # reggae that i build from source, it works but at the end it throws exception.

Where are you stuck within dub documentation? What do you want to achieve?

Kind regards
Andre