[third_party] Fix google_benchmark BUILD.gn for newer versions
The current BUILD.gn is incompatible with newer versions of
google_benchmark. This blocks V8 moving to a newer version of it, see
failing roll at:
https://chromium-review.googlesource.com/c/v8/v8/+/5281487
Change-Id: I2b9fb23303df75559319e00160fb5af23324aebf
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5285438
Reviewed-by: Peter Kasting <pkasting@chromium.org>
Commit-Queue: Matthias Liedtke <mliedtke@chromium.org>
Reviewed-by: Andreas Haas <ahaas@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1260444}
NOKEYCHECK=True
GitOrigin-RevId: 0f7e367b6588b7c6155eead1bdb2e72ffe3f1c5e
diff --git a/BUILD.gn b/BUILD.gn
index 2f26cfe..7fe8ec1 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -75,9 +75,10 @@
"benchmark_EXPORTS=1",
# Tell gtest to always use standard regular expressions.
- "HAVE_GNU_POSIX_REGEX=0",
- "HAVE_POSIX_REGEX=0",
"HAVE_STD_REGEX=1",
+
+ # google_benchmark expects a BENCHMARK_VERSION definition
+ "BENCHMARK_VERSION=\"1.7.1\"",
]
}