From a6c4624a684f7d5a2dbd21acbe74ecf611f4f839 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Sat, 10 Feb 2024 23:42:48 -0800 Subject: ot-br-posix: Limit vla-cxx-extension option to clang >= 18 Signed-off-by: Khem Raj --- .../recipes-connectivity/openthread/ot-br-posix/default-cxx-std.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'meta-networking/recipes-connectivity') diff --git a/meta-networking/recipes-connectivity/openthread/ot-br-posix/default-cxx-std.patch b/meta-networking/recipes-connectivity/openthread/ot-br-posix/default-cxx-std.patch index d6b3146a9d..4118887cb9 100644 --- a/meta-networking/recipes-connectivity/openthread/ot-br-posix/default-cxx-std.patch +++ b/meta-networking/recipes-connectivity/openthread/ot-br-posix/default-cxx-std.patch @@ -26,7 +26,7 @@ Signed-off-by: Khem Raj add_compile_options(-Wno-error=nonnull-compare) endif() -+if (CMAKE_CXX_COMPILER_ID MATCHES "Clang") ++if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 18.1) + add_compile_options(-Wno-error=vla-cxx-extension) +endif() + -- cgit v1.2.3-54-g00ecf