Set TBB_INC and TBB_LIB variables for package build (if TBB present) - #61
Set TBB_INC and TBB_LIB variables for package build (if TBB present)#61andrjohns wants to merge 1 commit into
Conversation
|
Usually R packages call |
R packages use So we need to set the environment variables so that the x86_64 |
|
We could configure |
In the long run, using But for now we can use this PR to get things to work, I'll deploy it on r-universe! |
|
@andrjohns I had to revert this because it causes RcppParallel to fail loading (at least the current CRAN version) when it is a dependency: https://github.com/r-universe/bioc/actions/runs/29756050039/attempts/1 The problem is that when cross compiling, we need to set the linker lib to the wasm build of libtbb, but the runtime libtbb when loading RcppParallel still be the host native one on Linux. So effectively the difference between LDFLAGS and LD_LIBRARY_PATH. However I think the |
Looks up and sets the location of the TBB include and lib directories for the build process using the webr
pkg-config.If the TBB has not been installed for webr (e.g., via this PR), the variables are empty and the build is unaffected.
You can verify that all works (after installing the oneTBB webr libs) via: