Skip to content

Commit a265415

Browse files
authored
chore(avm): only compile relations_acc bench locally (#16496)
It takes too long to build (especially in ARM).
2 parents f82c5e4 + 2e8196f commit a265415

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

barretenberg/cpp/src/barretenberg/vm2/constraining/benchmark/relations_acc.bench.cpp

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#ifdef AVM_COMPILE_BENCHMARKS
2+
13
#include <benchmark/benchmark.h>
24

35
#include <cstddef>
@@ -141,3 +143,15 @@ int main(int argc, char** argv)
141143
::benchmark::Initialize(&argc, argv);
142144
::benchmark::RunSpecifiedBenchmarks();
143145
}
146+
147+
#else
148+
149+
#include <iostream>
150+
151+
int main(int, char**)
152+
{
153+
std::cout << "This benchmark is disabled. To enable it, define AVM_COMPILE_BENCHMARKS." << std::endl;
154+
return 0;
155+
}
156+
157+
#endif // AVM_COMPILE_BENCHMARKS

0 commit comments

Comments
 (0)