diff options
author | Khem Raj <raj.khem@gmail.com> | 2024-02-10 23:42:48 -0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2024-02-10 23:47:57 -0800 |
commit | a6c4624a684f7d5a2dbd21acbe74ecf611f4f839 (patch) | |
tree | cb5712ac731a4faa94deb61d6b088d6082956e02 /meta-networking/recipes-connectivity | |
parent | fe06ca23194c4f19bd2ea4f63775c15ba0d8f973 (diff) | |
download | meta-openembedded-a6c4624a684f7d5a2dbd21acbe74ecf611f4f839.tar.gz |
ot-br-posix: Limit vla-cxx-extension option to clang >= 18
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-networking/recipes-connectivity')
-rw-r--r-- | meta-networking/recipes-connectivity/openthread/ot-br-posix/default-cxx-std.patch | 2 |
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 | + |