Skip to content

Add macOS arm64 bindings for R 4.6#263

Open
CGMossa wants to merge 1 commit into
extendr:masterfrom
CGMossa:add-macos-arm64-r4.6-bindings
Open

Add macOS arm64 bindings for R 4.6#263
CGMossa wants to merge 1 commit into
extendr:masterfrom
CGMossa:add-macos-arm64-r4.6-bindings

Conversation

@CGMossa

@CGMossa CGMossa commented Jun 30, 2026

Copy link
Copy Markdown
Member

TODO: replace this line with your own framing, in your own voice.

AI-written details

Summary

  • Add bindings-macos-aarch64-R4.6.rs and repoint the generic bindings-macos-aarch64.rs symlink to the newest non-devel version (R 4.6), the same way the /bindings CI step does.
  • R 4.6.0 was released after the last bindings update, so on Apple silicon the build fell back to the R 4.4 bindings with a "may not work" warning.

How it was generated

  • bindgen 0.69 against R 4.6.0, using this repo's pre-Detach bindgen for next release #250 generator (in-tree bindgen was removed in "Detach bindgen for next release", so generation now happens out of tree), with the current wrapper.h and the R 4.6 nonAPI.txt. clang: Homebrew 22.1.4.

Test plan

  • cargo test on macos-aarch64 with R 4.6.0 boots embedded R, evals, and asserts REALSXP == 1.0. Passes.
  • Reviewer regenerates via /bindings to confirm the file matches CI output.

Notes

  • Only macos-aarch64 is added here. The other targets need a /bindings regeneration on CI.
  • This binding excludes the now-non-API hashtable functions, so it pairs naturally with the nonAPI.txt update, but does not depend on it (the exclusion is baked in at generation time).

Drafted by Claude (claude-opus-4-8). Reviewed by the author.

R 4.6.0 was released after the last bindings update, so on Apple silicon
the build fell back to the generic (R 4.4) bindings with a "may not work"
warning. Add bindings for R 4.6 and repoint the generic
`bindings-macos-aarch64.rs` symlink to the newest non-devel version, as the
`/bindings` CI step does.

Generated with bindgen 0.69 against R 4.6.0 using this repo's pre-extendr#250
generator (in-tree bindgen was removed in "Detach bindgen for next release",
so generation now happens out of tree), with the current `wrapper.h` and the
R 4.6 `nonAPI.txt`. clang: Homebrew 22.1.4.

Only `macos-aarch64` is added here; the other targets need a `/bindings`
regeneration on CI. Pairs with the nonAPI.txt update (this binding excludes
the now-non-API hashtable functions).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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