aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/mesonlib/universal.py
diff options
context:
space:
mode:
authorVolker-Weissmann <39418860+Volker-Weissmann@users.noreply.github.com>2021-05-19 16:10:22 +0200
committerGitHub <noreply@github.com>2021-05-19 17:10:22 +0300
commit4ca9a16288f51cce99624a2ef595d879acdc02d8 (patch)
treeac6d15bc04257135fb65927be64bc9eb0de9c140 /mesonbuild/mesonlib/universal.py
parenta6e9b54b1d2d16b723e9aefd8cf49558e68abdc3 (diff)
downloadmeson-4ca9a16288f51cce99624a2ef595d879acdc02d8.zip
meson-4ca9a16288f51cce99624a2ef595d879acdc02d8.tar.gz
meson-4ca9a16288f51cce99624a2ef595d879acdc02d8.tar.bz2
.C files are now treated as C++ code
Diffstat (limited to 'mesonbuild/mesonlib/universal.py')
-rw-r--r--mesonbuild/mesonlib/universal.py10
1 files changed, 6 insertions, 4 deletions
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"):