aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/cython.py
AgeCommit message (Collapse)AuthorFilesLines
2022-03-22OptionOverrideProxy: Make it immutable to avoid copiesXavier Claessens1-2/+2
It is always used as an immutable view so there is no point in doing copies. However, mypy insist it must implement the same APIs as Dict[OptionKey, UserOption[Any]] so keep faking it.
2021-09-24Add option to to transpile Cython to C++Dylan Baker1-0/+8
This patch adds a new meson built-in option for cython, allowing it to target C++ instead of C as the intermediate language. This can, of course, be done on a per-target basis using the `override_options` keyword argument, or for the entire project in the project function. There are some things in this patch that are less than ideal. One of them is that we have to add compilers in the build layer, but there isn't a better place to do it because of per target override_options. There's also some design differences between Meson and setuptools, in that Meson only allows options on a per-target rather than a per-file granularity. Fixes #9015
2021-06-07cython: Add an option for selecting python 3 vs python 2 outputDylan Baker1-3/+21
2021-06-07hack: compilers/cython: hardcode python 3 not 2Dylan Baker1-1/+2
2021-06-07compilers: Add a cython CompilerDylan Baker1-0/+60