diff --git a/CMakeLists.txt b/CMakeLists.txt index 9db2322c5523a49461b5b432c2d95a0139f1cef5..4557bd8a6820d7a39b8e25a9a04c893551f9ef00 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -167,6 +167,8 @@ find_package(OpenCL REQUIRED) nanobind_add_module( _cl NB_STATIC # Build static libnanobind (the extension module itself remains a shared library) + LTO + NOMINSIZE src/wrap_constants.cpp src/wrap_cl.cpp src/wrap_cl_part_1.cpp