Skip to content

Commit

Permalink
add 64bit flag to pybind compilation [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
XanthosXanthopoulos committed Jan 24, 2025
1 parent 5da8b9c commit 5a65d15
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
2 changes: 2 additions & 0 deletions libtiledbsoma/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ set(CMAKE_CXX_EXTENSIONS OFF) # Don't use GNU extensions
# Build with fPIC
set(CMAKE_POSITION_INDEPENDENT_CODE ON)

set(CMAKE_VERBOSE_MAKEFILE ON)

# Set default builds/configuration to be Release.
get_property(is_multi_config GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG)
if (is_multi_config)
Expand Down
14 changes: 9 additions & 5 deletions libtiledbsoma/src/soma/soma_column.h
Original file line number Diff line number Diff line change
Expand Up @@ -426,15 +426,19 @@ class SOMAColumn {
std::optional<std::pair<T, T>> non_empty_domain_slot_opt(
const SOMAContext& ctx, Array& array) const {
try {
return std::any_cast<std::optional<std::pair<T, T>>>(
_non_empty_domain_slot_opt(ctx, array));
auto result = _non_empty_domain_slot_opt(ctx, array);

std::cout << "Returned " << result.type().name() << std::endl;
std::cout << "Required "
<< typeid(std::optional<std::pair<T, T>>).name()
<< std::endl;
return std::any_cast<std::optional<std::pair<T, T>>>(result);
} catch (const std::exception& e) {
throw TileDBSOMAError(std::format(
"[SOMAColumn][non_empty_domain_slot] Failed on \"{}\" with "
"error \"{}\", type '{}'",
"error \"{}\"",
name(),
e.what(),
typeid(T).name()));
e.what()));
}
}

Expand Down
3 changes: 3 additions & 0 deletions libtiledbsoma/src/soma/soma_dimension.cc
Original file line number Diff line number Diff line change
Expand Up @@ -724,6 +724,9 @@ std::any SOMADimension::_non_empty_domain_slot_opt(
case TILEDB_DATETIME_FS:
case TILEDB_DATETIME_AS:
case TILEDB_INT64:
std::cout
<< typeid(std::optional<std::pair<int64_t, int64_t>>).name()
<< std::endl;
if (is_empty) {
return std::make_any<
std::optional<std::pair<int64_t, int64_t>>>(std::nullopt);
Expand Down

0 comments on commit 5a65d15

Please sign in to comment.