www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - meson and d

reply dkd <xmen.cecep yahoo.com> writes:
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
Jun 09 2019
parent reply Matthias Klumpp <mak debian.org> writes:
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.
Jun 10 2019
parent reply dkd <xmen.cecep yahoo.com> writes:
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. documentation. throws exception.
Jun 10 2019
parent Andre Pany <andre s-e-a-p.de> writes:
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. documentation. throws exception.
Where are you stuck within dub documentation? What do you want to achieve? Kind regards Andre
Jun 10 2019