compilers/d: Support linker selection with gdc

This should have worked before, but the inheritance order was backwards,
so we got the DCompiler before the GnuCompiler, and the base Compiler
methods overrode the Gnu methods.
This commit is contained in:
Dylan Baker 2020-03-11 16:50:44 -07:00
parent 2ac480a0bd
commit 9c9dcbb1a8
1 changed files with 1 additions and 1 deletions

View File

@ -627,7 +627,7 @@ class DCompiler(Compiler):
return ' '.join(self.exelist)
class GnuDCompiler(DCompiler, GnuCompiler):
class GnuDCompiler(GnuCompiler, DCompiler):
# we mostly want DCompiler, but that gives us the Compiler.LINKER_PREFIX instead
LINKER_PREFIX = GnuCompiler.LINKER_PREFIX