From e0ca901df9ff4742dfcaf1c8839f042760197555 Mon Sep 17 00:00:00 2001 From: Michael Jeanson Date: Wed, 8 Dec 2021 15:54:53 -0500 Subject: [PATCH] Check for C++11 when building C++ probe providers The compiler used to build probe providers might differ from the one used to build lttng-ust, make sure that when a probe provider is built by a C++ compiler, it supports C++11. Change-Id: I2a17e923316ff87c023d8e50c53efdbe35386a21 Signed-off-by: Michael Jeanson Signed-off-by: Mathieu Desnoyers --- include/lttng/tracepoint.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/lttng/tracepoint.h b/include/lttng/tracepoint.h index 0b77d551..17fa2a0c 100644 --- a/include/lttng/tracepoint.h +++ b/include/lttng/tracepoint.h @@ -26,6 +26,10 @@ #include #include +#if (defined(__cplusplus) && (__cplusplus <= 199711L)) +#error "C++11 support is required to build tracepoints and providers as C++" +#endif + #define LTTNG_UST_TRACEPOINT_NAME_LEN_MAX 256 #ifdef LTTNG_UST_HAVE_SDT_INTEGRATION -- 2.34.1