diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2020-11-13 18:03:18 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2020-11-13 18:03:18 +0200 |
commit | fc8c0b433ad3555d5a23b294810367e256c686f5 (patch) | |
tree | 737117fd0a3034ffdfa2f5cf2d816517fe49e0fd /mesonbuild/linkers.py | |
parent | 91876b40316962620c1705ae14075ab46f8dd644 (diff) | |
download | meson-revertthinlto.tar.gz |
Revert "Add thinlto support. Closes #7493."revertthinlto
This reverts commit 3e6fbde94c1cb8d4e01b7daf0282c315ff0e6c7d.
Diffstat (limited to 'mesonbuild/linkers.py')
-rw-r--r-- | mesonbuild/linkers.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/mesonbuild/linkers.py b/mesonbuild/linkers.py index cc3db5fd4..589945c51 100644 --- a/mesonbuild/linkers.py +++ b/mesonbuild/linkers.py @@ -411,7 +411,7 @@ class DynamicLinker(LinkerEnvVarsMixin, metaclass=abc.ABCMeta): m = 'Linker {} does not support position-independent executable' raise mesonlib.EnvironmentException(m.format(self.id)) - def get_lto_args(self, lto_type: str) -> T.List[str]: + def get_lto_args(self) -> T.List[str]: return [] def sanitizer_args(self, value: str) -> T.List[str]: @@ -550,10 +550,8 @@ class GnuLikeDynamicLinkerMixin: def get_allow_undefined_args(self) -> T.List[str]: return self._apply_prefix('--allow-shlib-undefined') - def get_lto_args(self, lto_type: str) -> T.List[str]: - if lto_type != 'false': - return ['-flto'] - return [] + def get_lto_args(self) -> T.List[str]: + return ['-flto'] def sanitizer_args(self, value: str) -> T.List[str]: if value == 'none': |