diff options
| author | Dylan Baker <dylan@pnwbakers.com> | 2025-11-12 10:16:49 -0800 |
|---|---|---|
| committer | Dylan Baker <dylan@pnwbakers.com> | 2025-11-19 10:48:48 -0800 |
| commit | a5c703c9e068366a6331b23227529fabd35e42cd (patch) | |
| tree | 005ed7b0d79e1eab4ae08c36bbeb21e14320b555 /mesonbuild/compilers/compilers.py | |
| parent | df0139510791507181051d865472833f5fc2b442 (diff) | |
| download | meson-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.py | 6 |
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()) |
