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

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

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

Loading…
Cancel
Save