d: Don't fail if -link-defaultlib is manually added to the LDC link args

pull/3813/head
Matthias Klumpp 7 years ago committed by Jussi Pakkanen
parent 5715284177
commit 7618fa81d3
  1. 8
      mesonbuild/compilers/d.py

@ -212,6 +212,14 @@ class DCompiler(Compiler):
for la in linkargs:
dcargs.append('-L' + la.strip())
continue
elif arg.startswith('-link-defaultlib') or arg.startswith('-linker'):
# these are special arguments to the LDC linker call,
# arguments like "-link-defaultlib-shared" do *not*
# denote a library to be linked, but change the default
# Phobos/DRuntime linking behavior, while "-linker" sets the
# default linker.
dcargs.append(arg)
continue
elif arg.startswith('-l'):
# translate library link flag
dcargs.append('-L' + arg)

Loading…
Cancel
Save