summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-networking/recipes-connectivity/openthread/ot-br-posix/default-cxx-std.patch2
1 files changed, 1 insertions, 1 deletions
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 <raj.khem@gmail.com>
26 add_compile_options(-Wno-error=nonnull-compare) 26 add_compile_options(-Wno-error=nonnull-compare)
27 endif() 27 endif()
28 28
29+if (CMAKE_CXX_COMPILER_ID MATCHES "Clang") 29+if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 18.1)
30+ add_compile_options(-Wno-error=vla-cxx-extension) 30+ add_compile_options(-Wno-error=vla-cxx-extension)
31+endif() 31+endif()
32+ 32+