diff options
Diffstat (limited to 'dynamic-layers/meta-python/recipes-devtools/bcc/bcc/0001-tests-cc-Use-c-14-standard.patch')
-rw-r--r-- | dynamic-layers/meta-python/recipes-devtools/bcc/bcc/0001-tests-cc-Use-c-14-standard.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/dynamic-layers/meta-python/recipes-devtools/bcc/bcc/0001-tests-cc-Use-c-14-standard.patch b/dynamic-layers/meta-python/recipes-devtools/bcc/bcc/0001-tests-cc-Use-c-14-standard.patch new file mode 100644 index 0000000..dcd9dc1 --- /dev/null +++ b/dynamic-layers/meta-python/recipes-devtools/bcc/bcc/0001-tests-cc-Use-c-14-standard.patch | |||
@@ -0,0 +1,29 @@ | |||
1 | From 9f45e12ad4689ca2c41844b77c6d789d21509a13 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Mon, 6 Mar 2023 13:26:11 -0800 | ||
4 | Subject: [PATCH] tests/cc: Use c++14 standard | ||
5 | |||
6 | default c++ standard was bumped to c++17 when using clang16+ compiler | ||
7 | via 907b89cc9, however, tests which use check tool is not yet ported | ||
8 | to work with c++17 standard, therefore use c++14 on tests | ||
9 | |||
10 | Upstream-Status: Submitted [https://github.com/iovisor/bcc/pull/4506] | ||
11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
12 | Cc: Hengqi Chen <chenhengqi@outlook.com> | ||
13 | --- | ||
14 | tests/cc/CMakeLists.txt | 4 ++++ | ||
15 | 1 file changed, 4 insertions(+) | ||
16 | |||
17 | --- a/tests/cc/CMakeLists.txt | ||
18 | +++ b/tests/cc/CMakeLists.txt | ||
19 | @@ -27,6 +27,10 @@ if(${LLVM_PACKAGE_VERSION} VERSION_EQUAL | ||
20 | set(CMAKE_CXX_STANDARD 14) | ||
21 | endif() | ||
22 | |||
23 | +if(${LLVM_PACKAGE_VERSION} VERSION_EQUAL 16 OR ${LLVM_PACKAGE_VERSION} VERSION_GREATER 16) | ||
24 | +set(CMAKE_CXX_STANDARD 14) | ||
25 | +endif() | ||
26 | + | ||
27 | if(ENABLE_USDT) | ||
28 | set(TEST_LIBBCC_SOURCES | ||
29 | test_libbcc.cc | ||