Skip to content

Commit

Permalink
rust: use f-string to build rpath arguments
Browse files Browse the repository at this point in the history
Signed-off-by: Paolo Bonzini <[email protected]>
  • Loading branch information
bonzini authored and eli-schwartz committed Feb 4, 2025
1 parent f021c37 commit d34c37f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mesonbuild/compilers/rust.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ def build_rpath_args(self, env: 'Environment', build_dir: str, from_dir: str,
rustc_rpath_args = []
for arg in args:
rustc_rpath_args.append('-C')
rustc_rpath_args.append('link-arg=' + arg + ':' + self.get_target_libdir())
rustc_rpath_args.append(f'link-arg={arg}:{self.get_target_libdir()}')
return rustc_rpath_args, to_remove

def compute_parameters_with_absolute_paths(self, parameter_list: T.List[str],
Expand Down

0 comments on commit d34c37f

Please sign in to comment.