We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
PYBIND11_NOINLINE_FORCED
1 parent 3457185 commit fa53ba5Copy full SHA for fa53ba5
include/pybind11/detail/common.h
@@ -102,6 +102,9 @@
102
// For CUDA, GCC7, GCC8:
103
// PYBIND11_NOINLINE_FORCED is incompatible with `-Wattributes -Werror`.
104
// When defining PYBIND11_NOINLINE_FORCED, it is best to also use `-Wno-attributes`.
105
+// However, the measured shared-library size saving when using noinline are only
106
+// 1.7% for CUDA, -0.2% for GCC7, and 0.0% for GCC8 (using -DCMAKE_BUILD_TYPE=MinSizeRel,
107
+// the default under pybind11/tests).
108
#if !defined(PYBIND11_NOINLINE_FORCED) && \
109
(defined(__CUDACC__) || (defined(__GNUC__) && (__GNUC__ == 7 || __GNUC__ == 8)))
110
# define PYBIND11_NOINLINE_DISABLED
0 commit comments