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. 6
      mesonbuild/compilers/d.py

@ -379,7 +379,11 @@ class DCompiler(Compiler):
dcargs.append('-L=' + arg) dcargs.append('-L=' + arg)
continue 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) dcargs.append(arg)
return dcargs return dcargs

Loading…
Cancel
Save