www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - How to use dub with ldc

reply tobi <mail pato.at> writes:
Hi, I'm new to D and I would like to get the dlang-tour onto my 
local machine.

As far as I know, on my Pinebook Pro using aarm64 architecture, I 
must use the LDC compiler. The dlang-tour readme says to run `dub 
run dlang-tour -- --lang-dir .` which will run `rdmd` commands.

Is there a way to tell dub to work with ldc instead?

Thanks for your help!
Oct 22 2022
next sibling parent rikki cattermole <rikki cattermole.co.nz> writes:
If you only have one compiler available, dub will use it (doesn't matter 
if its dmd/ldc/gdc).

rdmd is a tool that wraps dmd/ldc/gdc.

https://github.com/dlang/tools/blob/master/rdmd.d

If you only have ldc in your PATH variable, rdmd just "just work".
Oct 22 2022
prev sibling parent ryuukk_ <ryuukk.dev gmail.com> writes:
On Saturday, 22 October 2022 at 18:08:51 UTC, tobi wrote:
 Hi, I'm new to D and I would like to get the dlang-tour onto my 
 local machine.

 As far as I know, on my Pinebook Pro using aarm64 architecture, 
 I must use the LDC compiler. The dlang-tour readme says to run 
 `dub run dlang-tour -- --lang-dir .` which will run `rdmd` 
 commands.

 Is there a way to tell dub to work with ldc instead?

 Thanks for your help!
dub run --compiler=ldc2
Oct 22 2022