diff options
| author | Dylan Baker <dylan@pnwbakers.com> | 2025-11-12 10:13:36 -0800 |
|---|---|---|
| committer | Dylan Baker <dylan@pnwbakers.com> | 2025-11-19 10:48:48 -0800 |
| commit | df0139510791507181051d865472833f5fc2b442 (patch) | |
| tree | 5bbfa7b60ab529b5fcd4b6dc7c70f743e01b7512 /mesonbuild/compilers/compilers.py | |
| parent | 0e6fd84db2299b45d9abbe42cb461fa7e49b27c3 (diff) | |
| download | meson-df0139510791507181051d865472833f5fc2b442.tar.gz | |
compilers: Remove Environment parameter from Compiler.openmp_flags
I've done the compile and link flags in one commit since they're so
closely related
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 929274ae4..046c5b157 100644 --- a/mesonbuild/compilers/compilers.py +++ b/mesonbuild/compilers/compilers.py @@ -970,11 +970,11 @@ class Compiler(HoldableObject, metaclass=abc.ABCMeta): def thread_link_flags(self, env: 'Environment') -> T.List[str]: return self.linker.thread_flags(env) - def openmp_flags(self, env: Environment) -> T.List[str]: + def openmp_flags(self) -> T.List[str]: raise EnvironmentException('Language %s does not support OpenMP flags.' % self.get_display_language()) - def openmp_link_flags(self, env: Environment) -> T.List[str]: - return self.openmp_flags(env) + def openmp_link_flags(self) -> T.List[str]: + return self.openmp_flags() def language_stdlib_only_link_flags(self) -> T.List[str]: return [] |
