Skip to content

[DRAFT] Fix/support cross-compiling packages depending on RcppParallel & TBB #52

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

andrjohns
Copy link

The next version of RcppParallel will support building the bundled TBB for WASM, this PR proposes an approach for linking against the cross-compiled TBB for packages that need to do so.

By downloading a version of RcppParallel built for WASM and setting the TBB_INC and TBB_LIB paths for the cross-compilation, everything builds and links without issue.

At the moment it's just hard-coding a link to the r-universe WASM build for RcppParallel - let me know if there's a better or more robust alternative!

@andrjohns
Copy link
Author

Note that this PR also requires the development version of RcppParallel for setting the right link flags when cross-compiling

@andrjohns andrjohns marked this pull request as draft June 12, 2025 10:16
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.

1 participant