r-lib / xml2

Bindings to libxml2
https://xml2.r-lib.org/
Other
218 stars 83 forks source link

Fix cross compilation issue #437

Closed jeroen closed 8 months ago

jeroen commented 8 months ago

This package cannot be cross compiled, because it tries to evaluate something at install time. Therefore p3m and webr and r-universe need to patch this package, which is a headache, e.g https://github.com/r-wasm/xml2/tree/webr

This PR changes it such that this code is evaluated during CMD build, instead of CMD INSTALL, such that we can cross compile from a source package without having to run anything.

@georgestagg @tylfin