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

This commit is contained in:
Matthias Klumpp 2018-08-25 19:25:37 +02:00 committed by Jussi Pakkanen
parent 4d986563dc
commit ce2eed32bc
1 changed files with 6 additions and 2 deletions

View File

@ -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