diff options
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) |