feat(compilers): cppm extension support

recognize the file extension `cppm` as c++ source file
pull/13075/merge
TheHillBright 8 months ago committed by Jussi Pakkanen
parent 1951fe5cf0
commit c0ca35c8fd
  1. 2
      mesonbuild/compilers/compilers.py

@ -52,7 +52,7 @@ lib_suffixes = {'a', 'lib', 'dll', 'dll.a', 'dylib', 'so', 'js'}
# First suffix is the language's default.
lang_suffixes = {
'c': ('c',),
'cpp': ('cpp', 'cc', 'cxx', 'c++', 'hh', 'hpp', 'ipp', 'hxx', 'ino', 'ixx', 'C', 'H'),
'cpp': ('cpp', 'cppm', 'cc', 'cxx', 'c++', 'hh', 'hpp', 'ipp', 'hxx', 'ino', 'ixx', 'C', 'H'),
'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