diff options
| author | Ralf Gommers <ralf.gommers@gmail.com> | 2025-02-20 23:26:07 -0100 |
|---|---|---|
| committer | Jussi Pakkanen <jpakkane@gmail.com> | 2025-02-25 19:46:34 +0200 |
| commit | 97db0bd0937eb978131aa18155522c0b3f6da3ff (patch) | |
| tree | 35a50c7e4b952b815508ba28031fa61bc8b92c0b | |
| parent | f44689645ebfea6ec2a5cc27f5755c557019185a (diff) | |
| download | meson-97db0bd0937eb978131aa18155522c0b3f6da3ff.tar.gz | |
Add a new test for `override_options: ['cython_language': 'cpp'])`
| -rw-r--r-- | test cases/cython/4 override_options/foo_cpp.pyx | 2 | ||||
| -rw-r--r-- | test cases/cython/4 override_options/meson.build | 11 |
2 files changed, 13 insertions, 0 deletions
diff --git a/test cases/cython/4 override_options/foo_cpp.pyx b/test cases/cython/4 override_options/foo_cpp.pyx new file mode 100644 index 000000000..01ff64d97 --- /dev/null +++ b/test cases/cython/4 override_options/foo_cpp.pyx @@ -0,0 +1,2 @@ +def the_answer(): + return 43 diff --git a/test cases/cython/4 override_options/meson.build b/test cases/cython/4 override_options/meson.build new file mode 100644 index 000000000..896993c0b --- /dev/null +++ b/test cases/cython/4 override_options/meson.build @@ -0,0 +1,11 @@ +project('my project', 'cython', 'cpp', + default_options : ['buildtype=release']) + +py = import('python').find_installation(pure: false) + +py.extension_module( + 'foo', + 'foo_cpp.pyx', + override_options : ['cython_language=cpp'], +) + |
