Skip to content

Commit

Permalink
Provide a --with-bundled-robin-map option
Browse files Browse the repository at this point in the history
  • Loading branch information
dominiklohmann committed Apr 1, 2021
1 parent 1de8084 commit f81e1e1
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 10 deletions.
22 changes: 13 additions & 9 deletions configure
Expand Up @@ -62,15 +62,16 @@ Usage: $0 [OPTION]... [VAR=VALUE]...
--with-ubsan enable Undefined Behavior Sanitizer
Required packages:
--with-arrow=PATH path to Apache Arrow install root
--without-arrow explicitly disable Apache Arrow integration
--with-caf=PATH path to CAF install root or build directory
--with-bundled-caf build CAF from the submodule
--with-flatbuffers=PATH path to FlatBuffers install root
--with-yaml-cpp=PATH path to yaml-cpp install root
--with-simdjson=PATH path to simdjson install root
--with-fmt=PATH path to {fmt} install root
--with-spdlog=PATH path to spdlog install root
--with-arrow=PATH path to Apache Arrow install root
--without-arrow explicitly disable Apache Arrow integration
--with-caf=PATH path to CAF install root or build directory
--with-bundled-caf build CAF from the submodule
--with-bundled-robin-map prefer bundled tsl-robin-map over installed one
--with-flatbuffers=PATH path to FlatBuffers install root
--with-yaml-cpp=PATH path to yaml-cpp install root
--with-simdjson=PATH path to simdjson install root
--with-fmt=PATH path to {fmt} install root
--with-spdlog=PATH path to spdlog install root
Optional packages:
--with-doxygen=PATH path to Doxygen install root
Expand Down Expand Up @@ -242,6 +243,9 @@ while [ $# -ne 0 ]; do
--with-bundled-caf)
append_cache_entry VAST_ENABLE_BUNDLED_CAF BOOL yes
;;
--with-bundled-robin-map)
append_cache_entry VAST_ENABLE_BUNDLED_ROBIN_MAP BOOL yes
;;
--with-flatbuffers=*)
append_cache_entry FLATBUFFERS_ROOT_DIR PATH "$optarg"
;;
Expand Down
11 changes: 10 additions & 1 deletion libvast/CMakeLists.txt
Expand Up @@ -4,8 +4,17 @@
# 0.6.2, which is not widely available on package managers. We should
# investigate switching to a different map, e.g., from folly or abseil.

find_package(tsl-robin-map 0.6.2 QUIET)
option(VAST_ENABLE_BUNDLED_ROBIN_MAP "Always use the bundled tsl-robin-map" OFF)
add_feature_info("VAST_ENABLE_BUNDLED_ROBIN_MAP" VAST_ENABLE_BUNDLED_ROBIN_MAP
"always use the tsl-robin-map.")
if (NOT VAST_ENABLE_BUNDLED_ROBIN_MAP)
find_package(tsl-robin-map 0.6.2 QUIET)
endif ()
if (NOT tsl-robin-map_FOUND)
if (NOT VAST_ENABLE_BUNDLED_ROBIN_MAP)
message(STATUS
"cannot find installed tsl-robin-map; falling back to bundled version")
endif ()
add_subdirectory(aux/robin-map)
export(
EXPORT tsl-robin-mapTargets
Expand Down

0 comments on commit f81e1e1

Please sign in to comment.