summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhillip Johnston <phillip@embeddedartistry.com>2020-05-26 11:19:07 -0700
committerJussi Pakkanen <jpakkane@gmail.com>2020-05-27 20:17:26 +0300
commitbdfd46e579472d24f8856b79938c8daa1b70d15f (patch)
treee89b14804f07d2fecbf577aa911dd3ac611f94ad
parent228fd24ca4039fe48d8f30a82cccc83d72b0e786 (diff)
downloadmeson-bdfd46e579472d24f8856b79938c8daa1b70d15f.tar.gz
Recognize Arduino .ino files as C++
Renaming .ino files is not an option when working with the IDE. Meson should recognize it as C++ however.
-rw-r--r--mesonbuild/compilers/compilers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/compilers/compilers.py b/mesonbuild/compilers/compilers.py
index f3c171f7f..3def15940 100644
--- a/mesonbuild/compilers/compilers.py
+++ b/mesonbuild/compilers/compilers.py
@@ -52,7 +52,7 @@ lib_suffixes = ('a', 'lib', 'dll', 'dll.a', 'dylib', 'so')
# This means we can't include .h headers here since they could be C, C++, ObjC, etc.
lang_suffixes = {
'c': ('c',),
- 'cpp': ('cpp', 'cc', 'cxx', 'c++', 'hh', 'hpp', 'ipp', 'hxx'),
+ 'cpp': ('cpp', 'cc', 'cxx', 'c++', 'hh', 'hpp', 'ipp', 'hxx', 'ino'),
'cuda': ('cu',),
# f90, f95, f03, f08 are for free-form fortran ('f90' recommended)
# f, for, ftn, fpp are for fixed-form fortran ('f' or 'for' recommended)