mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-21 21:17:37 -08:00
Bug: https://bugs.gentoo.org/952374 Closes: https://bugs.gentoo.org/956365 Signed-off-by: Alfred Wingate <parona@protonmail.com> Part-of: https://github.com/gentoo/gentoo/pull/42242 Closes: https://github.com/gentoo/gentoo/pull/42242 Signed-off-by: Sam James <sam@gentoo.org>
22 lines
633 B
Diff
22 lines
633 B
Diff
nanobind defaults to adding -Os and friends: https://github.com/wjakob/nanobind/blob/b0136fe6ac1967cb2399456adc346a1af06a3b88/docs/api_cmake.rst#L80.
|
|
|
|
... and LTO should be user defined via cflags.
|
|
|
|
--- a/CMakeLists.txt
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index 4557bd8a..0f4a731c 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -167,8 +167,9 @@ find_package(OpenCL REQUIRED)
|
|
nanobind_add_module(
|
|
_cl
|
|
NB_STATIC # Build static libnanobind (the extension module itself remains a shared library)
|
|
- LTO
|
|
+ PROTECT_STACK
|
|
NOMINSIZE
|
|
+ NOSTRIP
|
|
src/wrap_constants.cpp
|
|
src/wrap_cl.cpp
|
|
src/wrap_cl_part_1.cpp
|
|
|