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.
pull/7215/head
Phillip Johnston 5 years ago committed by Jussi Pakkanen
parent 228fd24ca4
commit bdfd46e579
  1. 2
      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)

Loading…
Cancel
Save