summaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/compilers.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2025-11-12 10:16:49 -0800
committerDylan Baker <dylan@pnwbakers.com>2025-11-19 10:48:48 -0800
commita5c703c9e068366a6331b23227529fabd35e42cd (patch)
tree005ed7b0d79e1eab4ae08c36bbeb21e14320b555 /mesonbuild/compilers/compilers.py
parentdf0139510791507181051d865472833f5fc2b442 (diff)
downloadmeson-a5c703c9e068366a6331b23227529fabd35e42cd.tar.gz
compilers: Remove Environment parameter from Compiler.thread_flags
Same logic as the openmp flags
Diffstat (limited to 'mesonbuild/compilers/compilers.py')
-rw-r--r--mesonbuild/compilers/compilers.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/mesonbuild/compilers/compilers.py b/mesonbuild/compilers/compilers.py
index 046c5b157..e9446b3b8 100644
--- a/mesonbuild/compilers/compilers.py
+++ b/mesonbuild/compilers/compilers.py
@@ -964,11 +964,11 @@ class Compiler(HoldableObject, metaclass=abc.ABCMeta):
return []
return self.linker.get_command_to_archive_shlib()
- def thread_flags(self, env: 'Environment') -> T.List[str]:
+ def thread_flags(self) -> T.List[str]:
return []
- def thread_link_flags(self, env: 'Environment') -> T.List[str]:
- return self.linker.thread_flags(env)
+ def thread_link_flags(self) -> T.List[str]:
+ return self.linker.thread_flags()
def openmp_flags(self) -> T.List[str]:
raise EnvironmentException('Language %s does not support OpenMP flags.' % self.get_display_language())