mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-07 03:29:59 +00:00
googlebenchmark: Disable c2y extentions diagnostics
clang-22 now finds __COUNTER__ and it complains | sources/googlebenchmark-1.9.4/src/benchmark.cc:15: | sources/googlebenchmark-1.9.4/include/benchmark/benchmark.h:1461:30: error: '__COUNTER__' is a C2y extension [-Werror,-Wc2y-extensions] | 1461 | #if defined(__COUNTER__) && (__COUNTER__ + 1 == __COUNTER__ + 0) Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
@@ -7,13 +7,15 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
|
|||||||
SRC_URI = "git://github.com/google/benchmark.git;protocol=https;branch=main;tag=v${PV}"
|
SRC_URI = "git://github.com/google/benchmark.git;protocol=https;branch=main;tag=v${PV}"
|
||||||
SRCREV = "eddb0241389718a23a42db6af5f0164b6e0139af"
|
SRCREV = "eddb0241389718a23a42db6af5f0164b6e0139af"
|
||||||
|
|
||||||
|
|
||||||
EXTRA_OECMAKE = " \
|
EXTRA_OECMAKE = " \
|
||||||
-DBUILD_SHARED_LIBS=yes \
|
-DBUILD_SHARED_LIBS=yes \
|
||||||
-DBENCHMARK_ENABLE_TESTING=no \
|
-DBENCHMARK_ENABLE_TESTING=no \
|
||||||
-DCMAKE_BUILD_TYPE=Release \
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
"
|
"
|
||||||
|
|
||||||
|
# Needed with glibc 2.43 which also defines __COUNTER__ now
|
||||||
|
CXXFLAGS += "-Wno-c2y-extensions"
|
||||||
|
|
||||||
inherit cmake
|
inherit cmake
|
||||||
|
|
||||||
FILES:${PN}-dev += "${libdir}/cmake"
|
FILES:${PN}-dev += "${libdir}/cmake"
|
||||||
|
|||||||
Reference in New Issue
Block a user