do not opttimize graph node functions in debug builds
[vpp.git] / src / vppinfra / cpu.h
index 0ca9edb..6dc0a23 100644 (file)
@@ -33,7 +33,7 @@
 #endif
 
 
-#if __GNUC__ > 4  && !__clang__
+#if __GNUC__ > 4  && !__clang__ && CLIB_DEBUG == 0
 #define CLIB_CPU_OPTIMIZED __attribute__ ((optimize ("O3")))
 #else
 #define CLIB_CPU_OPTIMIZED