From: Damjan Marion Date: Thu, 29 Nov 2018 13:40:30 +0000 (+0100) Subject: do not opttimize graph node functions in debug builds X-Git-Tag: v19.04-rc0~268 X-Git-Url: https://gerrit.fd.io/r/gitweb?p=vpp.git;a=commitdiff_plain;h=5ad75f5deacfbf093cfff3e1d1824645e2e51424 do not opttimize graph node functions in debug builds Change-Id: I5b4cd419d317381a06e7e6d703373959f4bbd97b Signed-off-by: Damjan Marion --- diff --git a/src/vppinfra/cpu.h b/src/vppinfra/cpu.h index 0ca9edb97fc..6dc0a23e467 100644 --- a/src/vppinfra/cpu.h +++ b/src/vppinfra/cpu.h @@ -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