diff options
| author | Dylan Baker <dylan@pnwbakers.com> | 2024-04-25 15:43:21 -0700 |
|---|---|---|
| committer | Eli Schwartz <eschwartz93@gmail.com> | 2024-06-26 16:15:47 -0400 |
| commit | f900b3270be6572a2f2aeb6c080eae37187a7459 (patch) | |
| tree | aa550dbb68ebea36cf8af976240d4649732e4d75 /mesonbuild/compilers | |
| parent | 3cd2cee7756b462a4d5fb72373ebc7e4ced71e4f (diff) | |
| download | meson-f900b3270be6572a2f2aeb6c080eae37187a7459.tar.gz | |
compilers|dependencies: Move Clang-CL specific logic out of OpenMP dep
And into the Clang-CL mixin.
Diffstat (limited to 'mesonbuild/compilers')
| -rw-r--r-- | mesonbuild/compilers/mixins/visualstudio.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/mesonbuild/compilers/mixins/visualstudio.py b/mesonbuild/compilers/mixins/visualstudio.py index abcedc7cb..907ea07f0 100644 --- a/mesonbuild/compilers/mixins/visualstudio.py +++ b/mesonbuild/compilers/mixins/visualstudio.py @@ -483,3 +483,10 @@ class ClangClCompiler(VisualStudioLikeCompiler): return converted else: return dep.get_compile_args() + + def openmp_link_flags(self, env: Environment) -> T.List[str]: + # see https://github.com/mesonbuild/meson/issues/5298 + libs = self.find_library('libomp', env, []) + if libs is None: + raise mesonlib.MesonBugException('Could not find libomp') + return super().openmp_link_flags(env) + libs |
