Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into stable
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinNowak committed Feb 14, 2022
2 parents 63b3867 + c46aebf commit 8896a8e
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion rdmd.d
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit 8896a8e

Please sign in to comment.