From 9c9dcbb1a836efacb44ac5effc0556ac4dd7fc1a Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Wed, 11 Mar 2020 16:50:44 -0700 Subject: 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. --- mesonbuild/compilers/d.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mesonbuild/compilers') diff --git a/mesonbuild/compilers/d.py b/mesonbuild/compilers/d.py index 9a46a4e..eb3a0f3 100644 --- a/mesonbuild/compilers/d.py +++ b/mesonbuild/compilers/d.py @@ -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 -- cgit v1.1