diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2024-04-25 15:35:28 -0700 |
---|---|---|
committer | Eli Schwartz <eschwartz93@gmail.com> | 2024-06-26 16:15:47 -0400 |
commit | 3cd2cee7756b462a4d5fb72373ebc7e4ced71e4f (patch) | |
tree | daef5d1fe14a0160a6364af4b89e97ac217de5f8 | |
parent | d86e5c52f47829aec4845910a26b59566c32ad61 (diff) | |
download | meson-3cd2cee7756b462a4d5fb72373ebc7e4ced71e4f.zip meson-3cd2cee7756b462a4d5fb72373ebc7e4ced71e4f.tar.gz meson-3cd2cee7756b462a4d5fb72373ebc7e4ced71e4f.tar.bz2 |
dependencies/openmp: use mlog.warning instead of open coding
It was probably done this way originally since we didn't have the
`fatal` keyword argument to avoid triggering the fatal-meson-warnings.
While we're here, replace the use of a `if bool` with an `else` on the
for loop.
-rw-r--r-- | mesonbuild/dependencies/misc.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/dependencies/misc.py b/mesonbuild/dependencies/misc.py index 68c3792..f9a2e04 100644 --- a/mesonbuild/dependencies/misc.py +++ b/mesonbuild/dependencies/misc.py @@ -139,8 +139,8 @@ class OpenMPDependency(SystemDependency): if self.clib_compiler.has_header(name, '', self.env, dependencies=[self], disable_cache=True)[0]: self.is_found = True break - if not self.is_found: - mlog.log(mlog.yellow('WARNING:'), 'OpenMP found but omp.h missing.') + else: + mlog.warning('OpenMP found but omp.h missing.', fatal=False) packages['openmp'] = OpenMPDependency |