diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2017-04-17 12:45:10 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-17 12:45:10 +0300 |
commit | 0e45134dee09b12005c028aee066b04ff86228e5 (patch) | |
tree | aed0a5da400746f896dced38e0a47bad8981f6c1 /mesonbuild/backend/backends.py | |
parent | a57f441b37fbabd96f35759c22f571bf39a7c9e3 (diff) | |
parent | e23c987ad2f0898bc8658ab6447d4a103d1362f0 (diff) | |
download | meson-0e45134dee09b12005c028aee066b04ff86228e5.zip meson-0e45134dee09b12005c028aee066b04ff86228e5.tar.gz meson-0e45134dee09b12005c028aee066b04ff86228e5.tar.bz2 |
Merge pull request #1628 from ximion/dfix
d: Fix linking shared libraries with DMD
Diffstat (limited to 'mesonbuild/backend/backends.py')
-rw-r--r-- | mesonbuild/backend/backends.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/backend/backends.py b/mesonbuild/backend/backends.py index 6a00d17..389e759 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)) |