summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Goldbaum <nathan.goldbaum@gmail.com>2024-07-12 10:05:45 -0700
committerEli Schwartz <eschwartz93@gmail.com>2024-07-12 13:52:55 -0400
commit4172cbd0fba77540490c370dda074f03ca4b9c33 (patch)
treeecb724a86c36042cafc7a015006aeb2f3e04715a
parentf15963194f50c08b3bef4cbf454bb54937d1ea19 (diff)
downloadmeson-4172cbd0fba77540490c370dda074f03ca4b9c33.tar.gz
docs: mention cython_args in cython reference docs
-rw-r--r--docs/markdown/Cython.md12
-rw-r--r--docs/markdown/Python-module.md2
2 files changed, 14 insertions, 0 deletions
diff --git a/docs/markdown/Cython.md b/docs/markdown/Cython.md
index 304275043..1491dc4fc 100644
--- a/docs/markdown/Cython.md
+++ b/docs/markdown/Cython.md
@@ -32,6 +32,18 @@ py.extension_module(
)
```
+You can pass arguments accepted by the `cython` CLI script with the
+`cython_args` argument:
+
+```meson
+py.extension_module(
+ 'foo-bounds'
+ 'foo.pyx',
+ dependencies : dep_py,
+ cython_args : ['-Xboundscheck=False'],
+)
+```
+
## C++ intermediate support
*(New in 0.60.0)*
diff --git a/docs/markdown/Python-module.md b/docs/markdown/Python-module.md
index c02eed91d..f3ee9ffc5 100644
--- a/docs/markdown/Python-module.md
+++ b/docs/markdown/Python-module.md
@@ -121,6 +121,8 @@ Additionally, the following diverge from [[shared_module]]'s default behavior:
- `gnu_symbol_visibility`: if unset, it will default to `'hidden'` on versions
of Python that support this (the python headers define `PyMODINIT_FUNC` has
default visibility).
+
+Note that Cython support uses `extension_module`, see [the reference for Cython](Cython.md).
*since 0.63.0* `extension_module` automatically adds a dependency to the library
if one is not explicitly provided. To support older versions, the user may need to