diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2018-09-03 19:30:52 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-03 19:30:52 +0300 |
commit | 9bcd498a2fb57d4a46e00a5e29b9bdeea15bd026 (patch) | |
tree | 68be6b9e6d1de31fecf3270ded552db191494bd1 /mesonbuild/compilers/d.py | |
parent | 3d86a24b5537db3e04795d9c3e94f57def28cf5d (diff) | |
parent | a5742f1852d76745b2a811c82178ad7aec280349 (diff) | |
download | meson-9bcd498a2fb57d4a46e00a5e29b9bdeea15bd026.zip meson-9bcd498a2fb57d4a46e00a5e29b9bdeea15bd026.tar.gz meson-9bcd498a2fb57d4a46e00a5e29b9bdeea15bd026.tar.bz2 |
Merge pull request #4084 from FFY00/pr-fix-dub-dependencies
dub: enhance dependency handling
Diffstat (limited to 'mesonbuild/compilers/d.py')
-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 c81c048..118a662 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[:] @@ -292,6 +295,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() @@ -307,6 +315,7 @@ class DCompiler(Compiler): dcargs.append('-L/DEFAULTLIB:legacy_stdio_definitions.lib') dcargs.append(arg) + continue dcargs.append(arg) |