Repository navigation
GH-45865: [C++] Create dedicated benchmark dependency in Meson - #45909
Conversation
| dependencies: [arrow_dep, gtest_main_dep], | ||
| ) | ||
| endif | ||
| if needs_tests and needs_filesystem |
There was a problem hiding this comment.
I don't know if this is intentional to require both tests and the filesystem options to be enabled, but it mirrors what CMake currently requires
There was a problem hiding this comment.
It's intentional. We can use this as a loadable filesystem.
|
|
b6b53ae to
5e953e3
Compare
|
|
||
| arrow_benchmark_dep = declare_dependency( | ||
| link_with: [arrow_test_lib], | ||
| dependencies: [arrow_dep, gtest_main_dep, benchmark_dep], |
There was a problem hiding this comment.
Can we use benchmark_main instead of gtest_main for benchmark?
There was a problem hiding this comment.
Yes we can. The only possible downside to doing so is that we would still need the gtest dependency, just without the main executable attached to it
| dependencies: [arrow_dep, gtest_main_dep], | ||
| ) | ||
| endif | ||
| if needs_tests and needs_filesystem |
There was a problem hiding this comment.
It's intentional. We can use this as a loadable filesystem.
| ) | ||
| endif | ||
| if needs_tests and needs_filesystem | ||
| library( |
There was a problem hiding this comment.
We need to use shared_module() not library().
| library( | ||
| 'arrow-filesystem-example', | ||
| sources: ['examplefs.cc'], | ||
| dependencies: [arrow_dep, gtest_main_dep], |
There was a problem hiding this comment.
| dependencies: [arrow_dep, gtest_main_dep], | |
| dependencies: [arrow_dep, gtest_dep], |
|
I believe I have addressed the feedback here but please let me know if anything is missing |
|
@github-actions crossbow submit meson |
|
Revision: d9ec982 Submitted crossbow builds: ursacomputing/crossbow @ actions-f568938eb3
|
|
After merging your PR, Conbench analyzed the 4 benchmarking runs that have been run so far on merge-commit ccd0223. There were no benchmark performance regressions. 🎉 The full Conbench report has more details. It also includes information about 5 possible false positives for unstable benchmarks that are known to sometimes produce them. |
…pache#45909) ### Rationale for this change This helps simplify the Meson configuration by conditionally creating an "Arrow Benchmark Dependency," which may be a disabler when benchmarks are not desired ### What changes are included in this PR? This is a refactor of the meson.build configuration files ### Are these changes tested? Yes ### Are there any user-facing changes? No * GitHub Issue: apache#45865 Authored-by: Will Ayd <william.ayd@icloud.com> Signed-off-by: Sutou Kouhei <kou@clear-code.com>
Rationale for this change
This helps simplify the Meson configuration by conditionally creating an "Arrow Benchmark Dependency," which may be a disabler when benchmarks are not desired
What changes are included in this PR?
This is a refactor of the meson.build configuration files
Are these changes tested?
Yes
Are there any user-facing changes?
No