diff options
| author | Khem Raj <raj.khem@gmail.com> | 2025-11-15 16:54:21 -0800 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2025-11-15 17:10:46 -0800 |
| commit | 5226464803aee3070b74dd57eaf9789922e01ac7 (patch) | |
| tree | 0164da296961904a33e37834672e4ea51ee50f81 | |
| parent | 1e2731fce05d15020fddf3dca5d8ee42ec3c04e1 (diff) | |
| download | meta-openembedded-master.tar.gz | |
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>
| -rw-r--r-- | meta-oe/recipes-support/googlebenchmark/googlebenchmark_1.9.4.bb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/meta-oe/recipes-support/googlebenchmark/googlebenchmark_1.9.4.bb b/meta-oe/recipes-support/googlebenchmark/googlebenchmark_1.9.4.bb index 4558aa13d6..7f6755d51e 100644 --- a/meta-oe/recipes-support/googlebenchmark/googlebenchmark_1.9.4.bb +++ b/meta-oe/recipes-support/googlebenchmark/googlebenchmark_1.9.4.bb | |||
| @@ -7,13 +7,15 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57" | |||
| 7 | SRC_URI = "git://github.com/google/benchmark.git;protocol=https;branch=main;tag=v${PV}" | 7 | SRC_URI = "git://github.com/google/benchmark.git;protocol=https;branch=main;tag=v${PV}" |
| 8 | SRCREV = "eddb0241389718a23a42db6af5f0164b6e0139af" | 8 | SRCREV = "eddb0241389718a23a42db6af5f0164b6e0139af" |
| 9 | 9 | ||
| 10 | |||
| 11 | EXTRA_OECMAKE = " \ | 10 | EXTRA_OECMAKE = " \ |
| 12 | -DBUILD_SHARED_LIBS=yes \ | 11 | -DBUILD_SHARED_LIBS=yes \ |
| 13 | -DBENCHMARK_ENABLE_TESTING=no \ | 12 | -DBENCHMARK_ENABLE_TESTING=no \ |
| 14 | -DCMAKE_BUILD_TYPE=Release \ | 13 | -DCMAKE_BUILD_TYPE=Release \ |
| 15 | " | 14 | " |
| 16 | 15 | ||
| 16 | # Needed with glibc 2.43 which also defines __COUNTER__ now | ||
| 17 | CXXFLAGS += "-Wno-c2y-extensions" | ||
| 18 | |||
| 17 | inherit cmake | 19 | inherit cmake |
| 18 | 20 | ||
| 19 | FILES:${PN}-dev += "${libdir}/cmake" | 21 | FILES:${PN}-dev += "${libdir}/cmake" |
