From 4ca9a16288f51cce99624a2ef595d879acdc02d8 Mon Sep 17 00:00:00 2001 From: Volker-Weissmann <39418860+Volker-Weissmann@users.noreply.github.com> Date: Wed, 19 May 2021 16:10:22 +0200 Subject: .C files are now treated as C++ code --- mesonbuild/mesonlib/universal.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'mesonbuild/mesonlib/universal.py') diff --git a/mesonbuild/mesonlib/universal.py b/mesonbuild/mesonlib/universal.py index ee1152c..318b365 100644 --- a/mesonbuild/mesonlib/universal.py +++ b/mesonbuild/mesonlib/universal.py @@ -350,10 +350,12 @@ class FileMode: return perms dot_C_dot_H_warning = """You are using .C or .H files in your project. This is deprecated. - Currently, Meson treats this as C code, but this - might change in the future, breaking your build. - You code also might be already broken on gcc and clang. - See https://github.com/mesonbuild/meson/pull/8239 for the discussions.""" + Currently, Meson treats this as C++ code, but they + used to be treated as C code. + Note that the situation is a bit more complex if you are using the + Visual Studio compiler, as it treats .C files as C code, unless you add + the /TP compiler flag, but this is unreliable. + See https://github.com/mesonbuild/meson/pull/8747 for the discussions.""" class File: def __init__(self, is_built: bool, subdir: str, fname: str): if fname.endswith(".C") or fname.endswith(".H"): -- cgit v1.1