Repository navigation
GH-51482: [R] allow building with shared snappy - #51490
Conversation
|
|
|
@jonkeane - Mind taking a look at this one? Is there any reason we might not want to do this or fine as long as it works on CI? |
There was a problem hiding this comment.
🟢 Approval recommended
The narrow configuration change addresses the requested use case while preserving existing defaults and WebAssembly behavior, with no unresolved findings.
No open issues 🎉
What changed in this PR
Enables R source builds to use a system-provided shared Snappy library, addressing #51482 while retaining static linking by default.
Changes:
- Allows
ARROW_SNAPPY_USE_SHAREDto override the defaultOFFsetting. - Explicitly keeps shared Snappy disabled for WebAssembly builds.
- Documents the override and its runtime library requirement.
| File | Description |
|---|---|
r/vignettes/install.Rmd |
Documents shared Snappy configuration and runtime requirements. |
r/tools/nixlibs.R |
Preserves static Snappy linking for WebAssembly. |
r/inst/build_arrow_static.sh |
Passes the configurable Snappy linking option to CMake. |
Review effort: Balanced
jonkeane
left a comment
There was a problem hiding this comment.
I'm ok to try this — we originally added this because on a CRAN machine snappy installed by homebrew was being linked to and that caused issues (I can't remember if their snappy was too old or too new or what, but that we added the OFF because of that).
This change doesn't change the default away from OFF (right?), just adds the option for someone to override the linking if they want, so we're ok
Rationale for this change
Couldn't build with shared snappy
What changes are included in this PR?
Allow it to be specified; default is
OFFAre these changes tested?
Will run CI
Are there any user-facing changes?
No
Was AI used for this PR?
In accordance to the AI generation guidelines, please disclose below whether and how AI was used in this PR.
PR code and description written by:
Reviewed before submission by: