diff options
Diffstat (limited to 'dynamic-layers/openembedded-layer/recipes-devtools/bcc/bcc/0001-tests-cc-Use-c-14-standard.patch')
-rw-r--r-- | dynamic-layers/openembedded-layer/recipes-devtools/bcc/bcc/0001-tests-cc-Use-c-14-standard.patch | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/dynamic-layers/openembedded-layer/recipes-devtools/bcc/bcc/0001-tests-cc-Use-c-14-standard.patch b/dynamic-layers/openembedded-layer/recipes-devtools/bcc/bcc/0001-tests-cc-Use-c-14-standard.patch index 48754f6..dcd9dc1 100644 --- a/dynamic-layers/openembedded-layer/recipes-devtools/bcc/bcc/0001-tests-cc-Use-c-14-standard.patch +++ b/dynamic-layers/openembedded-layer/recipes-devtools/bcc/bcc/0001-tests-cc-Use-c-14-standard.patch | |||
@@ -14,13 +14,11 @@ Cc: Hengqi Chen <chenhengqi@outlook.com> | |||
14 | tests/cc/CMakeLists.txt | 4 ++++ | 14 | tests/cc/CMakeLists.txt | 4 ++++ |
15 | 1 file changed, 4 insertions(+) | 15 | 1 file changed, 4 insertions(+) |
16 | 16 | ||
17 | diff --git a/tests/cc/CMakeLists.txt b/tests/cc/CMakeLists.txt | ||
18 | index bc870b07..b45f2369 100644 | ||
19 | --- a/tests/cc/CMakeLists.txt | 17 | --- a/tests/cc/CMakeLists.txt |
20 | +++ b/tests/cc/CMakeLists.txt | 18 | +++ b/tests/cc/CMakeLists.txt |
21 | @@ -23,6 +23,10 @@ add_compile_options(-DCMAKE_CURRENT_BINARY_DIR="${CMAKE_CURRENT_BINARY_DIR}") | 19 | @@ -27,6 +27,10 @@ if(${LLVM_PACKAGE_VERSION} VERSION_EQUAL |
22 | set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unused-result -fPIC") | 20 | set(CMAKE_CXX_STANDARD 14) |
23 | set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-unused-result -fPIC") | 21 | endif() |
24 | 22 | ||
25 | +if(${LLVM_PACKAGE_VERSION} VERSION_EQUAL 16 OR ${LLVM_PACKAGE_VERSION} VERSION_GREATER 16) | 23 | +if(${LLVM_PACKAGE_VERSION} VERSION_EQUAL 16 OR ${LLVM_PACKAGE_VERSION} VERSION_GREATER 16) |
26 | +set(CMAKE_CXX_STANDARD 14) | 24 | +set(CMAKE_CXX_STANDARD 14) |
@@ -29,6 +27,3 @@ index bc870b07..b45f2369 100644 | |||
29 | if(ENABLE_USDT) | 27 | if(ENABLE_USDT) |
30 | set(TEST_LIBBCC_SOURCES | 28 | set(TEST_LIBBCC_SOURCES |
31 | test_libbcc.cc | 29 | test_libbcc.cc |
32 | -- | ||
33 | 2.39.2 | ||
34 | |||