Newer
Older
dub_jkp / changelog / env-d-compiler.dd
@Ömer Faruk IRMAK Ömer Faruk IRMAK on 1 Dec 2020 454 bytes Use DC env variable as the default compiler
  1. Use DC environment variable as default D compiler
  2.  
  3. dub now respects the `DC` environment variable, meaning that `DC=ldc2 dub build` will behave as `dub build --compiler=ldc2`.
  4. In case both are supplied, the `--compiler` switch still has priority.
  5. Note that when DUB recursively invokes itself, for example in `preGenerateCommands`,
  6. it sets the `DC` variable to the compiler it is using, meaning that nested dub invocation will now use the same compiler.