From 7f0224fb888cfe28d1e4ad913f33b8eb085eb83b Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Thu, 12 Dec 2019 13:43:33 -0800 Subject: compilers: make use of mlog.log_once I'm sure there are other places that could use this, but I didn't see any right off that bat. --- mesonbuild/compilers/cpp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mesonbuild/compilers/cpp.py') diff --git a/mesonbuild/compilers/cpp.py b/mesonbuild/compilers/cpp.py index 6d45a842b..9e9e78eeb 100644 --- a/mesonbuild/compilers/cpp.py +++ b/mesonbuild/compilers/cpp.py @@ -484,7 +484,7 @@ class CPP11AsCPP14Mixin: # if one is using anything before that point, one cannot set the standard. if options['cpp_std'].value in {'vc++11', 'c++11'}: mlog.warning(self.id, 'does not support C++11;', - 'attempting best effort; setting the standard to C++14') + 'attempting best effort; setting the standard to C++14', once=True) # Don't mutate anything we're going to change, we need to use # deepcopy since we're messing with members, and we can't simply # copy the members because the option proxy doesn't support it. -- cgit v1.2.3