mirror of
https://github.com/dlang/tools.git
synced 2025-04-25 20:51:00 +03:00
Merge pull request #442 from MoonlightSentinel/default-versions
rdmd: Allow selection of default compiler independent from the host one
This commit is contained in:
commit
c46aebfec0
1 changed files with 10 additions and 1 deletions
11
rdmd.d
11
rdmd.d
|
@ -47,7 +47,16 @@ immutable string[] defaultExclusions = ["std", "etc", "core"];
|
|||
private string[] exclusions = defaultExclusions; // packages that are to be excluded
|
||||
private string[] extraFiles = [];
|
||||
|
||||
version (DigitalMars)
|
||||
// Override compiler at build time
|
||||
version (DefaultCompiler_DMD)
|
||||
private enum defaultCompiler = "dmd";
|
||||
else version (DefaultCompiler_GDC)
|
||||
private enum defaultCompiler = "gdmd";
|
||||
else version (DefaultCompiler_LDC)
|
||||
private enum defaultCompiler = "ldmd2";
|
||||
|
||||
// Default to the current host compiler if no default was specified
|
||||
else version (DigitalMars)
|
||||
private enum defaultCompiler = "dmd";
|
||||
else version (GNU)
|
||||
private enum defaultCompiler = "gdmd";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue