From: Mathieu Desnoyers Date: Sun, 24 Nov 2013 08:42:22 +0000 (-0500) Subject: gcc blacklist: only apply when building with gcc X-Git-Tag: v2.3.4~4 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=9d72e2a656a01c94412ffb1585a115330be7c031;p=lttng-modules.git gcc blacklist: only apply when building with gcc Signed-off-by: Mathieu Desnoyers --- diff --git a/wrapper/compiler.h b/wrapper/compiler.h index bd69fad3..0c016327 100644 --- a/wrapper/compiler.h +++ b/wrapper/compiler.h @@ -27,12 +27,15 @@ * Don't allow compiling with buggy compiler. */ +#ifdef GCC_VERSION + /* * http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58854 */ -#ifdef __ARMEL__ -# if GCC_VERSION >= 40800 && GCC_VERSION <= 40802 -# error Your gcc version produces clobbered frame accesses +# ifdef __ARMEL__ +# if GCC_VERSION >= 40800 && GCC_VERSION <= 40802 +# error Your gcc version produces clobbered frame accesses +# endif # endif #endif