summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mesonbuild/compilers/mixins/gnu.py12
1 files changed, 1 insertions, 11 deletions
diff --git a/mesonbuild/compilers/mixins/gnu.py b/mesonbuild/compilers/mixins/gnu.py
index fa34bb4ca..ed937338f 100644
--- a/mesonbuild/compilers/mixins/gnu.py
+++ b/mesonbuild/compilers/mixins/gnu.py
@@ -639,17 +639,7 @@ class GnuCompiler(GnuLikeCompiler):
def get_lto_link_args(self, *, threads: int = 0, mode: str = 'default',
thinlto_cache_dir: T.Optional[str] = None) -> T.List[str]:
args: T.List[str] = []
- if threads == 0:
- if self._has_lto_auto_support:
- args.append('-flto=auto')
- else:
- # This matches gcc's behavior of using the number of cpus, but
- # obeying meson's MESON_NUM_PROCESSES convention.
- args.append(f'-flto={mesonlib.determine_worker_count()}')
- elif threads > 0:
- args.append(f'-flto={threads}')
- else:
- args.extend(super().get_lto_compile_args(threads=threads))
+ args.extend(self.get_lto_compile_args(threads=threads))
return args
def get_profile_use_args(self) -> T.List[str]: