From 5afd608a755ebedd6b532dd82abefff205b9e997 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Thu, 15 Oct 2020 16:59:02 -0700 Subject: compilers/rust: add and use an implementation of use_linker_args --- mesonbuild/compilers/rust.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'mesonbuild/compilers') diff --git a/mesonbuild/compilers/rust.py b/mesonbuild/compilers/rust.py index 1be0cd8a7..312b3b645 100644 --- a/mesonbuild/compilers/rust.py +++ b/mesonbuild/compilers/rust.py @@ -125,6 +125,10 @@ class RustCompiler(Compiler): def get_output_args(self, outputname: str) -> T.List[str]: return ['-o', outputname] + @classmethod + def use_linker_args(cls, linker: str) -> T.List[str]: + return ['-C', 'linker={}'.format(linker)] + # Rust does not have a use_linker_args because it dispatches to a gcc-like # C compiler for dynamic linking, as such we invoke the C compiler's # use_linker_args method instead. -- cgit v1.2.3