Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/iceberg/benchmark/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,11 @@ endfunction()
add_iceberg_benchmark(benchmark_smoke)
add_iceberg_benchmark(metrics_evaluator_benchmark)
add_iceberg_benchmark(mumbling_bitmap_benchmark)

# Reads real Parquet tables, so it needs the bundle.
if(ICEBERG_BUILD_BUNDLE)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this benchmark includes <sys/resource.h> and calls getrusage, which won't build on windows when ICEBERG_BUILD_BUNDLE is enabled. should we guard the target with UNIX?

-if(ICEBERG_BUILD_BUNDLE)
+if(ICEBERG_BUILD_BUNDLE AND UNIX)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed. I’ll guard the target with ICEBERG_BUILD_BUNDLE AND UNIX, since it depends on getrusage.

add_executable(parallel_scan_benchmark parallel_scan_benchmark.cc)
target_link_libraries(parallel_scan_benchmark
PRIVATE "$<IF:$<TARGET_EXISTS:iceberg_bundle_static>,iceberg_bundle_static,iceberg_bundle_shared>"
)
endif()
Loading
Loading