aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2020-03-11 16:50:44 -0700
committerDylan Baker <dylan@pnwbakers.com>2020-03-12 13:21:04 -0700
commit9c9dcbb1a836efacb44ac5effc0556ac4dd7fc1a (patch)
tree3d987fd958caa1598d961b2aa26cbdb99a5af0ff
parent2ac480a0bdd20537cb01c188f248ced4f171b406 (diff)
downloadmeson-9c9dcbb1a836efacb44ac5effc0556ac4dd7fc1a.zip
meson-9c9dcbb1a836efacb44ac5effc0556ac4dd7fc1a.tar.gz
meson-9c9dcbb1a836efacb44ac5effc0556ac4dd7fc1a.tar.bz2
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.
-rw-r--r--mesonbuild/compilers/d.py2
1 files changed, 1 insertions, 1 deletions
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