diff options
| author | Dylan Baker <dylan@pnwbakers.com> | 2022-11-18 13:34:22 -0800 |
|---|---|---|
| committer | Eli Schwartz <eschwartz@archlinux.org> | 2023-05-31 17:19:45 -0400 |
| commit | 73c054ced60a0a510a990a8f0c3377657cf9fd28 (patch) | |
| tree | c7babb547efc884dafbe939fba2f108e92688bf7 /mesonbuild/compilers/c.py | |
| parent | d17e3ce6ba0a22f449c9bcb82d67281048c776e9 (diff) | |
| download | meson-73c054ced60a0a510a990a8f0c3377657cf9fd28.tar.gz | |
mlog: remove direct calls to log_once
This was never meant to be public API, log(once=True) is for that.
Diffstat (limited to 'mesonbuild/compilers/c.py')
| -rw-r--r-- | mesonbuild/compilers/c.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mesonbuild/compilers/c.py b/mesonbuild/compilers/c.py index cba10a63f..c1dafd0fe 100644 --- a/mesonbuild/compilers/c.py +++ b/mesonbuild/compilers/c.py @@ -484,10 +484,10 @@ class VisualStudioCCompiler(MSVCCompiler, VisualStudioLikeCCompilerMixin, CCompi args = [] std = options[OptionKey('std', machine=self.for_machine, lang=self.language)] if std.value.startswith('gnu'): - mlog.log_once( + mlog.log( 'cl.exe does not actually support gnu standards, and meson ' 'will instead demote to the nearest ISO C standard. This ' - 'may cause compilation to fail.') + 'may cause compilation to fail.', once=True) # As of MVSC 16.8, /std:c11 and /std:c17 are the only valid C standard options. if std.value in {'c11', 'gnu1x', 'gnu11'}: args.append('/std:c11') @@ -540,7 +540,7 @@ class IntelClCCompiler(IntelVisualStudioLikeCompiler, VisualStudioLikeCCompilerM key = OptionKey('std', machine=self.for_machine, lang=self.language) std = options[key] if std.value == 'c89': - mlog.log_once("ICL doesn't explicitly implement c89, setting the standard to 'none', which is close.") + mlog.log("ICL doesn't explicitly implement c89, setting the standard to 'none', which is close.", once=True) elif std.value != 'none': args.append('/Qstd:' + std.value) return args |
