mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-09-16 12:15:52 +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:
parent
fe06ca2319
commit
a6c4624a68
@ -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()
|
||||||
+
|
+
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user