make dub use my version of dmd
    WebFreak001 
    d.forum at webfreak.org
       
    Fri Apr 17 08:37:29 UTC 2020
    
    
  
On Thursday, 16 April 2020 at 19:56:44 UTC, Adam D. Ruppe wrote:
> For future reference, newer dubs (v 1.17 + i think) allow 
> --compiler=dmd-version for example.
>
> You need to put the exe in your PATH and rename it yourself, 
> but it recognizes *dmd-* (or *ldc2-* or *gdc-*) all the same so 
> you can specifiy them.
>
> I was doing that in early versions of my android thing, i made 
> a program "android-ldc" and then did "dub build 
> --compiler=android-ldc" and it all worked.
>
> S o you can do that with versions too.
Also you can use `dub --compiler=/path/to/dmd` (or ldc, or gdc) 
and it magically know the compiler type, though maybe it knows 
because of the filename.
    
    
More information about the Digitalmars-d-learn
mailing list