Revert "[libc][NFC][Obvious] Fix the benchmarks after the switch to llvm/third-party"
authorMircea Trofin <mtrofin@google.com>
Wed, 17 Nov 2021 00:57:29 +0000 (16:57 -0800)
committerMircea Trofin <mtrofin@google.com>
Wed, 17 Nov 2021 00:59:14 +0000 (16:59 -0800)
This reverts commit 39e9f5d3685f3cfca0df072928ad96d973704dff.

Reverting, as we needed to re-revert the benchmarks move because it was
causing a build failure in the Fuchsia bots due to the way they consume
libcxx's CMakeLists. I want to make sure I understand where the fix
should be for that. After that, I'll incorporate the change here in the
re-reland.

libc/benchmarks/LibcBenchmark.cpp

index 621e046..cef595d 100644 (file)
@@ -15,7 +15,7 @@ namespace libc_benchmarks {
 
 void checkRequirements() {
   const auto &CpuInfo = benchmark::CPUInfo::Get();
-  if (CpuInfo.scaling == benchmark::CPUInfo::ENABLED)
+  if (CpuInfo.scaling_enabled)
     report_fatal_error(
         "CPU scaling is enabled, the benchmark real time measurements may be "
         "noisy and will incur extra overhead.");