Skip to content

WASM hacks#49

Draft
juntyr wants to merge 6 commits intorobertu94:masterfrom
juntyr:wasm
Draft

WASM hacks#49
juntyr wants to merge 6 commits intorobertu94:masterfrom
juntyr:wasm

Conversation

@juntyr
Copy link

@juntyr juntyr commented Feb 12, 2026

Scratchpad for the hacks needed to build libpressio for WASM. These hacks should be refined before actually merging anything.

CMakeLists.txt Outdated
VERBATIM
)
target_sources(libpressio PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/pressio_manual_register.cc)
#add_executable(pressio_register_generator src/pressio_register_generator.cc)
Copy link
Owner

Choose a reason for hiding this comment

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

removing this will mean that you might be able to build a libpressio, but not one that can do anything. we can talk soon over zoom about this.

auto s_roi_size = as<ssize_t>(roi_size);
std::array<size_t,1> center{center_ptr[0]};
std::array<size_t,1> center{static_cast<size_t>(center_ptr[0])};
auto s_center = as<ssize_t>(center);
Copy link
Owner

Choose a reason for hiding this comment

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

In general the preference should be to handle these at a higher level of abstraction so fewer casts are required.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants