digitalmars.D.learn - How to use dub with ldc
- tobi (7/7) Oct 22 2022 Hi, I'm new to D and I would like to get the dlang-tour onto my
- rikki cattermole (5/5) Oct 22 2022 If you only have one compiler available, dub will use it (doesn't matter...
- ryuukk_ (2/10) Oct 22 2022 dub run --compiler=ldc2
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
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
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