aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/linkers.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2020-11-13 18:03:18 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2020-11-17 17:51:23 +0200
commitc8af3c8d29df9535b76ce62a8aafdbb0bc9cc10f (patch)
tree067f1117a0a9c0f5c5d9bc85a9edf5bf624ec55d /mesonbuild/linkers.py
parenteb2c26b2c2f3662f489d403ef038944efdd77a85 (diff)
downloadmeson-c8af3c8d29df9535b76ce62a8aafdbb0bc9cc10f.zip
meson-c8af3c8d29df9535b76ce62a8aafdbb0bc9cc10f.tar.gz
meson-c8af3c8d29df9535b76ce62a8aafdbb0bc9cc10f.tar.bz2
Revert "Add thinlto support. Closes #7493."
This reverts commit 3e6fbde94c1cb8d4e01b7daf0282c315ff0e6c7d.
Diffstat (limited to 'mesonbuild/linkers.py')
-rw-r--r--mesonbuild/linkers.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/mesonbuild/linkers.py b/mesonbuild/linkers.py
index cc3db5f..589945c 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':