d: Allow static library to be passed with -L to dmd/ldc

pull/4343/head
Matthias Klumpp 6 years ago committed by Jussi Pakkanen
parent 4d986563dc
commit ce2eed32bc
  1. 8
      mesonbuild/compilers/d.py

@ -379,8 +379,12 @@ class DCompiler(Compiler):
dcargs.append('-L=' + arg) dcargs.append('-L=' + arg)
continue continue
elif not arg.startswith('-') and arg.endswith(('.a', '.lib')):
dcargs.append(arg) # ensure static libraries are passed through to the linker
dcargs.append('-L=' + arg)
continue
else:
dcargs.append(arg)
return dcargs return dcargs

Loading…
Cancel
Save