From 124cedde38de07b1b166cb0e74b74e8b16eb9432 Mon Sep 17 00:00:00 2001 From: FFY00 Date: Sat, 25 Aug 2018 23:33:20 +0100 Subject: dub: enhance dependency handling fixes #4032: meson now checks properly for the compiler used to compile dub dependencies fixes #3568: applied the following patch https://paste.debian.net/1039317/ meson now adds flags for native dependencies required by dub modules meson now checks for the D version implemented by the compiler used to build dub dependencies (execpt gdc which doesn't support this) --- mesonbuild/compilers/d.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'mesonbuild/compilers') diff --git a/mesonbuild/compilers/d.py b/mesonbuild/compilers/d.py index a03af3e..7398301 100644 --- a/mesonbuild/compilers/d.py +++ b/mesonbuild/compilers/d.py @@ -95,6 +95,9 @@ class DCompiler(Compiler): def name_string(self): return ' '.join(self.exelist) + def get_exelist(self): + return self.exelist + def get_linker_exelist(self): return self.exelist[:] @@ -294,6 +297,11 @@ class DCompiler(Compiler): # a linker search path. dcargs.append('-L' + arg) continue + elif arg.startswith('/') or arg.startswith('./'): + # absolute (or relative) paths passed to the linker may be static libraries + # or other objects that we need to link. + dcargs.append('-L' + arg) + continue elif arg.startswith('-mscrtlib='): mscrtlib = arg[10:].lower() @@ -309,6 +317,7 @@ class DCompiler(Compiler): dcargs.append('-L/DEFAULTLIB:legacy_stdio_definitions.lib') dcargs.append(arg) + continue dcargs.append(arg) -- cgit v1.1