Add prefix option for link args

pull/4472/head
Phillip Cao 6 years ago
parent fc77ec9243
commit 76333d2a1e
  1. 2
      mesonbuild/backend/backends.py
  2. 6
      mesonbuild/compilers/compilers.py

@ -607,6 +607,8 @@ class Backend:
continue
if compiler.get_language() == 'd':
arg = '-Wl,' + arg
else:
arg = compiler.get_linker_lib_prefix() + arg
args.append(arg)
return args

@ -898,6 +898,9 @@ class Compiler:
def get_linker_always_args(self):
return []
def get_linker_lib_prefix(self):
return ''
def gen_import_library_args(self, implibname):
"""
Used only on Windows for libraries that need an import library.
@ -1896,6 +1899,9 @@ class CcrxCompiler:
def get_linker_exelist(self):
return [self.linker_exe]
def get_linker_lib_prefix(self):
return '-lib='
def get_coverage_args(self):
return []

Loading…
Cancel
Save