diff options
author | Eli Schwartz <eschwartz@archlinux.org> | 2021-07-04 19:18:28 -0400 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2021-07-05 17:55:04 +0300 |
commit | bd6f46e723813dfadaba1f7c87d3b0b751d05219 (patch) | |
tree | 4e5114bd99e249f474023c505b8c388c73bde255 /mesonbuild/linkers | |
parent | b4b488f33cb6da1d840371039d6cf2c76f91ea9b (diff) | |
download | meson-bd6f46e723813dfadaba1f7c87d3b0b751d05219.zip meson-bd6f46e723813dfadaba1f7c87d3b0b751d05219.tar.gz meson-bd6f46e723813dfadaba1f7c87d3b0b751d05219.tar.bz2 |
condense lines
Diffstat (limited to 'mesonbuild/linkers')
-rw-r--r-- | mesonbuild/linkers/linkers.py | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/mesonbuild/linkers/linkers.py b/mesonbuild/linkers/linkers.py index 4b64069..c26edda 100644 --- a/mesonbuild/linkers/linkers.py +++ b/mesonbuild/linkers/linkers.py @@ -407,8 +407,7 @@ class DynamicLinker(metaclass=abc.ABCMeta): return [] def has_multi_arguments(self, args: T.List[str], env: 'Environment') -> T.Tuple[bool, bool]: - m = f'Language {self.id} does not support has_multi_link_arguments.' - raise EnvironmentException(m) + raise EnvironmentException(f'Language {self.id} does not support has_multi_link_arguments.') def get_debugfile_name(self, targetfile: str) -> str: '''Name of debug file written out (see below)''' @@ -433,8 +432,7 @@ class DynamicLinker(metaclass=abc.ABCMeta): # TODO: this really needs to take a boolean and return the args to # disable pie, otherwise it only acts to enable pie if pie *isn't* the # default. - m = f'Linker {self.id} does not support position-independent executable' - raise EnvironmentException(m) + raise EnvironmentException(f'Linker {self.id} does not support position-independent executable') def get_lto_args(self) -> T.List[str]: return [] @@ -463,8 +461,7 @@ class DynamicLinker(metaclass=abc.ABCMeta): pass def get_coverage_args(self) -> T.List[str]: - m = f"Linker {self.id} doesn't implement coverage data generation." - raise EnvironmentException(m) + raise EnvironmentException(f"Linker {self.id} doesn't implement coverage data generation.") @abc.abstractmethod def get_search_args(self, dirname: str) -> T.List[str]: |