diff options
Diffstat (limited to 'dev-python/pyopencl/files')
| -rw-r--r-- | dev-python/pyopencl/files/pyopencl-2024.2.7-nanobind-flags.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/dev-python/pyopencl/files/pyopencl-2024.2.7-nanobind-flags.patch b/dev-python/pyopencl/files/pyopencl-2024.2.7-nanobind-flags.patch new file mode 100644 index 000000000000..e5816b924773 --- /dev/null +++ b/dev-python/pyopencl/files/pyopencl-2024.2.7-nanobind-flags.patch @@ -0,0 +1,13 @@ +nanobind defaults to adding -Os and friends: https://github.com/wjakob/nanobind/blob/b0136fe6ac1967cb2399456adc346a1af06a3b88/docs/api_cmake.rst#L80. +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -167,6 +167,9 @@ find_package(OpenCL REQUIRED) + nanobind_add_module( + _cl + NB_STATIC # Build static libnanobind (the extension module itself remains a shared library) ++ PROTECT_STACK ++ NOMINSIZE ++ NOSTRIP + src/wrap_constants.cpp + src/wrap_cl.cpp + src/wrap_cl_part_1.cpp |
