diff options
author | Chun-wei Fan <fanchunwei@src.gnome.org> | 2022-06-08 11:39:04 +0800 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2022-06-21 21:08:06 +0300 |
commit | 6e7c3efa793c25259891d3b5471343f95fb061fa (patch) | |
tree | 7ce98e8308166d002d0c04b335484d749772a71d /mesonbuild/compilers/cpp.py | |
parent | 28a9c1fdad259bfb30cbc734755a714b880d7113 (diff) | |
download | meson-6e7c3efa793c25259891d3b5471343f95fb061fa.zip meson-6e7c3efa793c25259891d3b5471343f95fb061fa.tar.gz meson-6e7c3efa793c25259891d3b5471343f95fb061fa.tar.bz2 |
visualstudio.py: Apply /utf-8 only on clang or VS2015+
In PR 10263, we didn't account for that we may have initialize the Visual
Studio-like compiler two times, once for a C compiler and once for the
C++ compiler, so we end up with Meson breaking on Visual Studio 2013
or earlier, such as when building GLib.
Fix this by setting up the always_args member of
the VisualStudioLikeCompiler instance during __init__() as needed, so that
we avoid falling into modifying shared objects.
Diffstat (limited to 'mesonbuild/compilers/cpp.py')
0 files changed, 0 insertions, 0 deletions