diff --git a/mesonbuild/build.py b/mesonbuild/build.py index dff9649b7..942927c39 100644 --- a/mesonbuild/build.py +++ b/mesonbuild/build.py @@ -64,6 +64,7 @@ lang_arg_kwargs = { 'rust_args', 'vala_args', 'cs_args', + 'cython_args', } vala_kwargs = {'vala_header', 'vala_gir', 'vala_vapi'} diff --git a/mesonbuild/compilers/compilers.py b/mesonbuild/compilers/compilers.py index 361f5d6d0..cdb9f1c70 100644 --- a/mesonbuild/compilers/compilers.py +++ b/mesonbuild/compilers/compilers.py @@ -64,6 +64,7 @@ lang_suffixes = { 'cs': ('cs',), 'swift': ('swift',), 'java': ('java',), + 'cython': ('pyx', ), } # type: T.Dict[str, T.Tuple[str, ...]] all_languages = lang_suffixes.keys() cpp_suffixes = lang_suffixes['cpp'] + ('h',) # type: T.Tuple[str, ...] @@ -97,6 +98,7 @@ CFLAGS_MAPPING: T.Mapping[str, str] = { 'd': 'DFLAGS', 'vala': 'VALAFLAGS', 'rust': 'RUSTFLAGS', + 'cython': 'CYTHONFLAGS', } CEXE_MAPPING: T.Mapping = {