diff options
Diffstat (limited to 'mesonbuild/compilers/mixins/gnu.py')
-rw-r--r-- | mesonbuild/compilers/mixins/gnu.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/mesonbuild/compilers/mixins/gnu.py b/mesonbuild/compilers/mixins/gnu.py index 5771ad811..bb1fc6631 100644 --- a/mesonbuild/compilers/mixins/gnu.py +++ b/mesonbuild/compilers/mixins/gnu.py @@ -295,10 +295,8 @@ class GnuLikeCompiler(Compiler, metaclass=abc.ABCMeta): return self._split_fetch_real_dirs(line.split('=', 1)[1]) return [] - def get_lto_compile_args(self, lto_type: str) -> T.List[str]: - if lto_type != 'false': - return ['-flto'] - return [] + def get_lto_compile_args(self) -> T.List[str]: + return ['-flto'] def sanitizer_compile_args(self, value: str) -> T.List[str]: if value == 'none': |