mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-03 02:10:04 +00:00
ot-br-posix: Limit vla-cxx-extension option to clang >= 18
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
@@ -26,7 +26,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|||||||
add_compile_options(-Wno-error=nonnull-compare)
|
add_compile_options(-Wno-error=nonnull-compare)
|
||||||
endif()
|
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)
|
+ add_compile_options(-Wno-error=vla-cxx-extension)
|
||||||
+endif()
|
+endif()
|
||||||
+
|
+
|
||||||
|
|||||||
Reference in New Issue
Block a user