aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Klumpp <matthias@tenstral.net>2017-04-15 18:40:11 +0200
committerMatthias Klumpp <matthias@tenstral.net>2017-04-15 18:40:11 +0200
commit52a56d441a4d596f7633a364d01110ac4bb806ce (patch)
tree9f297e2703c3adf0b8980a2977a012a7bdbe7b6d
parentdcc95d7f705c5fbc036d7d6511f6df50beaac44a (diff)
downloadmeson-52a56d441a4d596f7633a364d01110ac4bb806ce.zip
meson-52a56d441a4d596f7633a364d01110ac4bb806ce.tar.gz
meson-52a56d441a4d596f7633a364d01110ac4bb806ce.tar.bz2
d: Fix linking shared libraries with DMD
-rw-r--r--mesonbuild/backend/backends.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/backend/backends.py b/mesonbuild/backend/backends.py
index a77047b..bcf06d5 100644
--- a/mesonbuild/backend/backends.py
+++ b/mesonbuild/backend/backends.py
@@ -435,7 +435,7 @@ class Backend:
for d in deps:
if not isinstance(d, (build.StaticLibrary, build.SharedLibrary)):
raise RuntimeError('Tried to link with a non-library target "%s".' % d.get_basename())
- if isinstance(compiler, compilers.LLVMDCompiler):
+ if isinstance(compiler, compilers.LLVMDCompiler) or isinstance(compiler, compilers.DmdDCompiler):
args += ['-L' + self.get_target_filename_for_linking(d)]
else:
args.append(self.get_target_filename_for_linking(d))