From 97db0bd0937eb978131aa18155522c0b3f6da3ff Mon Sep 17 00:00:00 2001 From: Ralf Gommers Date: Thu, 20 Feb 2025 23:26:07 -0100 Subject: Add a new test for `override_options: ['cython_language': 'cpp'])` --- test cases/cython/4 override_options/foo_cpp.pyx | 2 ++ test cases/cython/4 override_options/meson.build | 11 +++++++++++ 2 files changed, 13 insertions(+) create mode 100644 test cases/cython/4 override_options/foo_cpp.pyx create mode 100644 test cases/cython/4 override_options/meson.build 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'], +) + -- cgit v1.2.3