diff options
author | FFY00 <filipe.lains@gmail.com> | 2018-08-25 23:33:20 +0100 |
---|---|---|
committer | FFY00 <filipe.lains@gmail.com> | 2018-08-29 20:22:01 +0100 |
commit | 124cedde38de07b1b166cb0e74b74e8b16eb9432 (patch) | |
tree | 94dd44bc1511d8350c6311c0f8a5f007291a8a31 /mesonbuild/compilers | |
parent | b86f2fd17f1f0825e16b1df2b1f3f598c0d77b85 (diff) | |
download | meson-124cedde38de07b1b166cb0e74b74e8b16eb9432.zip meson-124cedde38de07b1b166cb0e74b74e8b16eb9432.tar.gz meson-124cedde38de07b1b166cb0e74b74e8b16eb9432.tar.bz2 |
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)
Diffstat (limited to 'mesonbuild/compilers')
-rw-r--r-- | mesonbuild/compilers/d.py | 9 |
1 files changed, 9 insertions, 0 deletions
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) |