diff options
author | Michael Brockus <55331536+michaelbadcrumble@users.noreply.github.com> | 2020-02-24 10:10:56 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-24 10:10:56 -0800 |
commit | c72de63b9bd08f97c8f74151b9e9e0bdd77763bb (patch) | |
tree | ec24cddbcb568e7faa57bd36cb74662deb4d818a | |
parent | 9edbaec2f481f021d6a4a0eded2d5e1f795b18ab (diff) | |
download | meson-c72de63b9bd08f97c8f74151b9e9e0bdd77763bb.zip meson-c72de63b9bd08f97c8f74151b9e9e0bdd77763bb.tar.gz meson-c72de63b9bd08f97c8f74151b9e9e0bdd77763bb.tar.bz2 |
use python set to tuple for checking members
-rw-r--r-- | mesonbuild/minit.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/minit.py b/mesonbuild/minit.py index f03eefc..f2c7d9c 100644 --- a/mesonbuild/minit.py +++ b/mesonbuild/minit.py @@ -40,8 +40,8 @@ we currently have one meson template at this time. from mesonbuild.templates.mesontemplates import create_meson_build FORTRAN_SUFFIXES = ('.f', '.for', '.F', '.f90', '.F90') -LANG_SUFFIXES = ('.c', '.cc', '.cpp', '.cs', '.cu', '.d', '.m', '.mm', '.rs', '.java') + FORTRAN_SUFFIXES -LANG_SUPPORTED = ('c', 'cpp', 'cs', 'cuda', 'd', 'fortran', 'java', 'rust', 'objc', 'objcpp') +LANG_SUFFIXES = {'.c', '.cc', '.cpp', '.cs', '.cu', '.d', '.m', '.mm', '.rs', '.java'}.add(FORTRAN_SUFFIXES) +LANG_SUPPORTED = {'c', 'cpp', 'cs', 'cuda', 'd', 'fortran', 'java', 'rust', 'objc', 'objcpp'} DEFAULT_PROJECT = 'executable' DEFAULT_VERSION = '0.1' |