Thread overview
How to use dub with ldc
Oct 22, 2022
tobi
Oct 22, 2022
rikki cattermole
Oct 22, 2022
ryuukk_
October 22, 2022

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!

October 23, 2022
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".
October 22, 2022

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