diff options
author | Eli Schwartz <eschwartz@archlinux.org> | 2021-07-04 19:04:22 -0400 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2021-07-05 17:55:04 +0300 |
commit | b4b488f33cb6da1d840371039d6cf2c76f91ea9b (patch) | |
tree | 3cf193641022aa9aab8b0d7c315d15052dd6be98 /mesonbuild/compilers | |
parent | dd31891c1fd6d3b9c955e73bd80170242b6423e5 (diff) | |
download | meson-b4b488f33cb6da1d840371039d6cf2c76f91ea9b.zip meson-b4b488f33cb6da1d840371039d6cf2c76f91ea9b.tar.gz meson-b4b488f33cb6da1d840371039d6cf2c76f91ea9b.tar.bz2 |
simplify mesonlib imports for the sake of line lengths
Diffstat (limited to 'mesonbuild/compilers')
-rw-r--r-- | mesonbuild/compilers/mixins/islinker.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/mesonbuild/compilers/mixins/islinker.py b/mesonbuild/compilers/mixins/islinker.py index 33f74e3..250d55b 100644 --- a/mesonbuild/compilers/mixins/islinker.py +++ b/mesonbuild/compilers/mixins/islinker.py @@ -22,7 +22,7 @@ classes for those cases. import typing as T -from ... import mesonlib +from ...mesonlib import EnvironmentException, MesonException, is_windows if T.TYPE_CHECKING: from ...coredata import KeyedOptionDictType @@ -52,7 +52,7 @@ class BasicLinkerIsCompilerMixin(Compiler): return [] def can_linker_accept_rsp(self) -> bool: - return mesonlib.is_windows() + return is_windows() def get_linker_exelist(self) -> T.List[str]: return self.exelist.copy() @@ -82,16 +82,16 @@ class BasicLinkerIsCompilerMixin(Compiler): return self.get_std_shared_lib_link_args() def get_link_whole_for(self, args: T.List[str]) -> T.List[str]: - raise mesonlib.EnvironmentException( + raise EnvironmentException( f'Linker {self.id} does not support link_whole') def get_allow_undefined_link_args(self) -> T.List[str]: - raise mesonlib.EnvironmentException( + raise EnvironmentException( f'Linker {self.id} does not support allow undefined') def get_pie_link_args(self) -> T.List[str]: m = f'Linker {self.id} does not support position-independent executable' - raise mesonlib.EnvironmentException(m) + raise EnvironmentException(m) def get_undefined_link_args(self) -> T.List[str]: return [] @@ -103,13 +103,13 @@ class BasicLinkerIsCompilerMixin(Compiler): return [] def bitcode_args(self) -> T.List[str]: - raise mesonlib.MesonException("This linker doesn't support bitcode bundles") + raise MesonException("This linker doesn't support bitcode bundles") def get_soname_args(self, env: 'Environment', prefix: str, shlib_name: str, suffix: str, soversion: str, darwin_versions: T.Tuple[str, str], is_shared_module: bool) -> T.List[str]: - raise mesonlib.MesonException("This linker doesn't support soname args") + raise MesonException("This linker doesn't support soname args") def build_rpath_args(self, env: 'Environment', build_dir: str, from_dir: str, rpath_paths: str, build_rpath: str, |