commit 65abb0ed34ae567de0e063a81417fd58954c98f8 parent 65554fb390eb8649466fc23014030c6839e1c77d Author: d.levin256@gmail.com <d.levin256@gmail.com> Date: Mon, 29 Aug 2016 04:32:42 +0300 Compile times have been reduced by 10 times in Debug mode Diffstat:
M | include/kfr/cident.h | | | 9 | +++++++-- |
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/include/kfr/cident.h b/include/kfr/cident.h @@ -233,9 +233,14 @@ extern char* gets(char* __s); #define CMT_NODEBUG // __attribute__((__nodebug__)) -#define CMT_INLINE __inline__ __attribute__((__always_inline__)) +#ifdef NDEBUG +#define CMT_ALWAYS_INLINE __attribute__((__always_inline__)) +#else +#define CMT_ALWAYS_INLINE +#endif +#define CMT_INLINE __inline__ CMT_ALWAYS_INLINE #define CMT_INTRIN CMT_INLINE CMT_NODEBUG -#define CMT_INLINE_MEMBER __attribute__((__always_inline__)) +#define CMT_INLINE_MEMBER CMT_ALWAYS_INLINE #define CMT_INLINE_LAMBDA CMT_INLINE_MEMBER #define CMT_NOINLINE __attribute__((__noinline__)) #define CMT_FLATTEN __attribute__((__flatten__))